From: Kleber Sacilotto de Souza Date: Wed, 6 Sep 2017 09:08:06 +0000 (+0200) Subject: tipc: remove unnecessary call to dev_net() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e0deed92406d93ae0365cb8a6134db5721e7aca;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git tipc: remove unnecessary call to dev_net() The net device is already stored in the 'net' variable, so no need to call dev_net() again. Signed-off-by: Kleber Sacilotto de Souza Acked-by: Ying Xue Signed-off-by: David S. Miller --- diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index ac1d66d7e1fd..47ec121574ce 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c @@ -637,7 +637,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt, break; case NETDEV_UNREGISTER: case NETDEV_CHANGENAME: - bearer_disable(dev_net(dev), b); + bearer_disable(net, b); break; } return NOTIFY_OK;