The patch titled ehea: simplify resource usage check has been removed from the -mm tree. Its filename was ehea-simplify-resource-usage-check.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ 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 git-netdev-all.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