aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiang Ma <[email protected]>2021-06-16 20:53:32 +0800
committerGreg Kroah-Hartman <[email protected]>2021-06-18 13:03:19 +0200
commit3c07e1eaafdb642fe7f8dd050ce04552c875057e (patch)
tree95d507e243d78ea5167fd1440157dd8ba19544e3
parenta85adbb5858a29cf7e364985583724fa996a8839 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_cmd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c
index 18eb87052f48..eb89a52aa4e3 100644
--- a/drivers/staging/rtl8188eu/core/rtw_cmd.c
+++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c
@@ -72,17 +72,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;
}