mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
staging: rtl8192u: 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/1652696533-18011-1-git-send-email-baihaowen@meizu.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
37a3929feb
commit
902d750581
@ -1700,8 +1700,6 @@ static inline void ieee80211_sta_ps(struct work_struct *work)
|
|||||||
unsigned long flags, flags2;
|
unsigned long flags, flags2;
|
||||||
|
|
||||||
ieee = container_of(work, struct ieee80211_device, ps_task);
|
ieee = container_of(work, struct ieee80211_device, ps_task);
|
||||||
if (!ieee)
|
|
||||||
return;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&ieee->lock, flags);
|
spin_lock_irqsave(&ieee->lock, flags);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user