summaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorKleber Sacilotto de Souza <kleber.souza@canonical.com>2017-09-06 11:08:06 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-06 21:25:52 -0700
commit8e0deed92406d93ae0365cb8a6134db5721e7aca (patch)
tree429b27cb1b6096fc1dcdc28035ae94368d41e521 /net/tipc
parentf773608026ee1e75e2256e3ad625c222ff6f9305 (diff)
downloadlinux-8e0deed92406d93ae0365cb8a6134db5721e7aca.tar.bz2
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 <kleber.souza@canonical.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/bearer.c2
1 files changed, 1 insertions, 1 deletions
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;