]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: inline rollback_registered_many()
authorJakub Kicinski <kuba@kernel.org>
Fri, 15 Jul 2022 16:26:32 +0000 (19:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:19:09 +0000 (17:19 +0200)
commit4f900c37f13eef18e56f541b525d1e743948e01c
treec7ed6b925a4e6c4814e0487fcb222be73611353c
parentbf2f3d1970c03f14c84515738de5c0cb28c8ebce
net: inline rollback_registered_many()

commit 0cbe1e57a7b93517100b0eb63d8e445cfbeb630c upstream.

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>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c