mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
staging: rtl8192e: 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/1652696403-17852-1-git-send-email-baihaowen@meizu.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3baab4bc2f
commit
37a3929feb
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue