mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-13 01:04:35 +08: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;
|
u8 mode;
|
||||||
struct xcast_addr_list *mc;
|
struct xcast_addr_list *mc;
|
||||||
|
|
||||||
if (!vf_work)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Save message data locally to prevent them from
|
/* Save message data locally to prevent them from
|
||||||
* being overwritten by next ndo_set_rx_mode call().
|
* being overwritten by next ndo_set_rx_mode call().
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user