Commit 37a3929f authored by Haowen Bai's avatar Haowen Bai Committed by Greg Kroah-Hartman

staging: rtl8192e: remove null check after call container_of()

container_of() will never return NULL, so remove useless code.
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1652696403-17852-1-git-send-email-baihaowen@meizu.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3baab4bc
......@@ -2056,8 +2056,6 @@ static inline void rtllib_sta_ps(struct work_struct *work)
unsigned long flags, flags2;
ieee = container_of(work, struct rtllib_device, ps_task);
if (!ieee)
return;
spin_lock_irqsave(&ieee->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment