mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 00:21:32 +00:00
net: thunderx: remove null check after call container_of()
container_of() will never return NULL, so remove useless code. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Link: https://lore.kernel.org/r/1652696212-17516-1-git-send-email-baihaowen@meizu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
76e1e5df4b
commit
ab4d6357c9
@ -2024,9 +2024,6 @@ static void nicvf_set_rx_mode_task(struct work_struct *work_arg)
|
||||
u8 mode;
|
||||
struct xcast_addr_list *mc;
|
||||
|
||||
if (!vf_work)
|
||||
return;
|
||||
|
||||
/* Save message data locally to prevent them from
|
||||
* being overwritten by next ndo_set_rx_mode call().
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user