]> git.baikalelectronics.ru Git - kernel.git/commit
net: bareudp: simplify error paths calling dellink
authorJakub Kicinski <kuba@kernel.org>
Mon, 11 Jan 2021 05:29:22 +0000 (21:29 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jan 2021 01:09:23 +0000 (17:09 -0800)
commitb32b5f5e840c956ff8fbec8acc7dbbced778e55f
tree7f03d7dd8e8785f1d63dc5c8c929cf8ce9a505b5
parentafe9cdad03067a0b075548bf4f0bce21e6f4438d
net: bareudp: simplify error paths calling dellink

bareudp_dellink() only needs the device list to hand it to
unregister_netdevice_queue(). We can pass NULL in, and
unregister_netdevice_queue() will do the unregistering.
There is no chance for batching on the error path, anyway.

Suggested-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Link: https://lore.kernel.org/r/20210111052922.2145003-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bareudp.c