[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210616125332.31674-1-maqianga@uniontech.com>
Date: Wed, 16 Jun 2021 20:53:32 +0800
From: Qiang Ma <maqianga@...ontech.com>
To: Larry.Finger@...inger.net, gregkh@...uxfoundation.org,
insafonov@...il.com, yepeilin.cs@...il.com, ffclaire1224@...il.com
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Qiang Ma <maqianga@...ontech.com>
Subject: [PATCH] staging: r8188eu/core: remove the check for NULL pointer in _rtw_enqueue_cmd()
Remove the check for _rtw_enqueue_cmd(), because
rtw_enqueue_cmd() already has a check of NULL pointer,
so this condition is not possible.
Signed-off-by: Qiang Ma <maqianga@...ontech.com>
---
drivers/staging/rtl8188eu/core/rtw_cmd.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c
index 1724dfd7edbc..513c0f95b4bf 100644
--- a/drivers/staging/rtl8188eu/core/rtw_cmd.c
+++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c
@@ -39,17 +39,12 @@ static int _rtw_enqueue_cmd(struct __queue *queue, struct cmd_obj *obj)
{
unsigned long irqL;
- if (!obj)
- goto exit;
-
spin_lock_irqsave(&queue->lock, irqL);
list_add_tail(&obj->list, &queue->queue);
spin_unlock_irqrestore(&queue->lock, irqL);
-exit:
-
return _SUCCESS;
}
--
2.20.1
Powered by blists - more mailing lists