aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKleber Sacilotto de Souza <kleber.souza@canonical.com>2017-09-06 05:08:06 -0400
committerDavid S. Miller <davem@davemloft.net>2017-09-07 00:25:52 -0400
commit8e0deed92406d93ae0365cb8a6134db5721e7aca (patch)
tree429b27cb1b6096fc1dcdc28035ae94368d41e521
parentf773608026ee1e75e2256e3ad625c222ff6f9305 (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.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,
637 break; 637 break;
638 case NETDEV_UNREGISTER: 638 case NETDEV_UNREGISTER:
639 case NETDEV_CHANGENAME: 639 case NETDEV_CHANGENAME:
640 bearer_disable(dev_net(dev), b); 640 bearer_disable(net, b);
641 break; 641 break;
642 } 642 }
643 return NOTIFY_OK; 643 return NOTIFY_OK;