[PATCH] staging: rtl8192e: remove null check after call container_of()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



container_of() will never return NULL, so remove useless code.

Signed-off-by: Haowen Bai <baihaowen@xxxxxxxxx>
---
 drivers/staging/rtl8192e/rtllib_softmac.c | 2 --
 1 file changed, 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);
 
-- 
2.7.4





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux