]> git.baikalelectronics.ru Git - kernel.git/commit
net: inline rollback_registered_many()
authorJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 20:25:21 +0000 (12:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Jan 2021 05:04:19 +0000 (21:04 -0800)
commitfd0552ce8767def5afb278dcf2e2cc1b0c190bf5
tree504ba6121e998d3138d6a48e813b3500878e9277
parent33e7c68248e2267ea2adbc71ca924ee8ca37a2f9
net: inline rollback_registered_many()

Similar to the change for rollback_registered() -
rollback_registered_many() was a part of unregister_netdevice_many()
minus the net_set_todo(), which is no longer needed.

Functionally this patch moves the list_empty() check back after:

BUG_ON(dev_boot_phase);
ASSERT_RTNL();

but I can't find any reason why that would be an issue.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c