summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-05-16 18:22:12 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-19 17:42:53 +0200
commit902d75058129aa33c899e08c97d4f5cda8d047eb (patch)
tree3f0cc3dd9728c15b16be97608bd4236bbc1b2527 /drivers/staging
parent37a3929feba82d71f3d3519fb57c25bef8ed281a (diff)
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index 7fdce759d23d..92001cb36730 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -1700,8 +1700,6 @@ static inline void ieee80211_sta_ps(struct work_struct *work)
unsigned long flags, flags2;
ieee = container_of(work, struct ieee80211_device, ps_task);
- if (!ieee)
- return;
spin_lock_irqsave(&ieee->lock, flags);