OSDN Git Service

net: call call_netdevice_unregister_net_notifiers from unregister
authorJiri Pirko <jiri@mellanox.com>
Sat, 25 Jan 2020 11:17:06 +0000 (12:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:03:44 +0000 (11:03 +0100)
commit48b3a1379fc6603c1ff26893ea05322c1c41e31c
treebb17a8266ab68eee1da8298883fd353de60ba1e7
parentcd94ef06392ffd49e0a0e1c28bc5cd44f37f1f6b
net: call call_netdevice_unregister_net_notifiers from unregister

The function does the same thing as the existing code, so rather call
call_netdevice_unregister_net_notifiers() instead of code duplication.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c