staging: rtl8723bs: remove unnecessary parentheses in if condition
authorFabio Aiuto <fabioaiuto83@gmail.com>
Wed, 7 Apr 2021 13:49:37 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Apr 2021 15:13:03 +0000 (17:13 +0200)
fix following post-commit hook checkpatch issue:

CHECK: Unnecessary parentheses around pcmdpriv->cmd_queue.queue
85: FILE: drivers/staging/rtl8723bs/core/rtw_cmd.c:422:
+ if (list_empty(&(pcmdpriv->cmd_queue.queue)))

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/3f5cf6b7b9aa5a0fa09b71278fdc361e9f113c41.1617802415.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c

index cc00bd4..baf8b1e 100644 (file)
@@ -419,7 +419,7 @@ int rtw_cmd_thread(void *context)
                        break;
                }
 
-               if (list_empty(&(pcmdpriv->cmd_queue.queue)))
+               if (list_empty(&pcmdpriv->cmd_queue.queue))
                        continue;
 
                if (rtw_register_cmd_alive(padapter) != _SUCCESS)