]> 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)
commitb091f575437c52fcc92c4ff2b55d41fa4629859f
tree7f03d7dd8e8785f1d63dc5c8c929cf8ce9a505b5
parent5005ba3c5462213935414c59c52a95a6bdb24e10
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