From: Ying Xue Date: Mon, 21 Apr 2014 02:55:50 +0000 (+0800) Subject: tipc: use bearer_disable to disable bearer in tipc_l2_device_event X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ae88c94d3b52dc47c6ad9352991219862f703f9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git tipc: use bearer_disable to disable bearer in tipc_l2_device_event As bearer pointer is known in tipc_l2_device_event(), it's unnecessary to search it again in tipc_disable_bearer(). If tipc_disable_bearer() is replaced with bearer_disable() in tipc_l2_device_event(), this will help us save a bit time when bearer is disabled. Signed-off-by: Ying Xue Reviewed-by: Jon Maloy Reviewed-by: Erik Hugne Tested-by: Erik Hugne Signed-off-by: David S. Miller --- diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index 402e99472a63..44fd22a0c070 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c @@ -606,7 +606,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt, break; case NETDEV_UNREGISTER: case NETDEV_CHANGENAME: - tipc_disable_bearer(b_ptr->name); + bearer_disable(b_ptr, false); break; } return NOTIFY_OK;