diff options
author | Kleber Sacilotto de Souza | 2017-09-06 11:08:06 +0200 |
---|---|---|
committer | David S. Miller | 2017-09-06 21:25:52 -0700 |
commit | 8e0deed92406d93ae0365cb8a6134db5721e7aca (patch) | |
tree | 429b27cb1b6096fc1dcdc28035ae94368d41e521 | |
parent | f773608026ee1e75e2256e3ad625c222ff6f9305 (diff) |
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>
-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; |