summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-05-16 18:20:03 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-19 17:42:43 +0200
commit37a3929feba82d71f3d3519fb57c25bef8ed281a (patch)
tree6d17217c3f3dfb995780b577e844549de9d76f71 /drivers/staging
parent3baab4bc2f5a1eb083a4c4d25d393a4fec87fd48 (diff)
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8192e/rtllib_softmac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index aab131bdb052..b5f4d35954a9 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -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);