diff options
author | Kleber Sacilotto de Souza <kleber.souza@canonical.com> | 2017-09-06 11:08:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-07 06:25:52 +0200 |
commit | 8e0deed92406d93ae0365cb8a6134db5721e7aca (patch) | |
tree | 429b27cb1b6096fc1dcdc28035ae94368d41e521 /net | |
parent | netlink: access nlk groups safely in netlink bind and getname (diff) | |
download | linux-8e0deed92406d93ae0365cb8a6134db5721e7aca.tar.xz linux-8e0deed92406d93ae0365cb8a6134db5721e7aca.zip |
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')
-rw-r--r-- | net/tipc/bearer.c | 2 |
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; |