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>
This commit is contained in:
parent
f773608026
commit
8e0deed924
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue