[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1652696533-18011-1-git-send-email-baihaowen@meizu.com>
Date: Mon, 16 May 2022 18:22:12 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: Haowen Bai <baihaowen@...zu.com>, <linux-staging@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] 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@...zu.com>
---
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 2 --
1 file changed, 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);
--
2.7.4
Powered by blists - more mailing lists