1
0
Fork 0

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>
zero-colors
Kleber Sacilotto de Souza 2017-09-06 11:08:06 +02:00 committed by David S. Miller
parent f773608026
commit 8e0deed924
1 changed files with 1 additions and 1 deletions

View File

@ -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;