The patch titled ehea: simplify resource usage check has been added to the -mm tree. Its filename is ehea-simplify-resource-usage-check.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: ehea: simplify resource usage check From: Thomas Klein <osstklei@xxxxxxxxxx> Use shorter method to determine whether adapter has configured ports Signed-off-by: Thomas Klein <tklein@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/net/ehea/ehea_main.c | 18 ++++++------------ 1 files changed, 6 insertions(+), 12 deletions(-) diff -puN drivers/net/ehea/ehea_main.c~ehea-simplify-resource-usage-check drivers/net/ehea/ehea_main.c --- a/drivers/net/ehea/ehea_main.c~ehea-simplify-resource-usage-check +++ a/drivers/net/ehea/ehea_main.c @@ -2165,24 +2165,18 @@ static int ehea_clean_all_portres(struct return ret; } -static void ehea_remove_adapter_mr (struct ehea_adapter *adapter) +static void ehea_remove_adapter_mr(struct ehea_adapter *adapter) { - int i; - - for (i=0; i < EHEA_MAX_PORTS; i++) - if (adapter->port[i]) - return; + if (adapter->active_ports) + return; ehea_rem_mr(&adapter->mr); } -static int ehea_add_adapter_mr (struct ehea_adapter *adapter) +static int ehea_add_adapter_mr(struct ehea_adapter *adapter) { - int i; - - for (i=0; i < EHEA_MAX_PORTS; i++) - if (adapter->port[i]) - return 0; + if (adapter->active_ports) + return 0; return ehea_reg_kernel_mr(adapter, &adapter->mr); } _ Patches currently in -mm which might be from osstklei@xxxxxxxxxx are ehea-fix-workqueue-handling.patch ehea-simplify-resource-usage-check.patch ehea-eliminated-some-compiler-warnings.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html