[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220209202015.29156-1-leonardo.aa88@gmail.com>
Date: Wed, 9 Feb 2022 17:20:15 -0300
From: Leonardo Araujo <leonardo.aa88@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, linux-staging@...ts.linux.dev,
Leonardo Araujo <leonardo.aa88@...il.com>
Subject: [PATCH] Staging: r8188eu: core: Comparisons should place the constant on the right side of the test
This patch fixes the following checkpatch.pl warning:
WARNING: Comparisons should place the constant on the right side of the test
Signed-off-by: Leonardo Araujo <leonardo.aa88@...il.com>
---
drivers/staging/r8188eu/core/rtw_cmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c
index c7e8602d2097..a9a5453aa1cc 100644
--- a/drivers/staging/r8188eu/core/rtw_cmd.c
+++ b/drivers/staging/r8188eu/core/rtw_cmd.c
@@ -188,7 +188,7 @@ u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
cmd_obj->padapter = padapter;
res = rtw_cmd_filter(pcmdpriv, cmd_obj);
- if (_FAIL == res) {
+ if (res == _FAIL) {
rtw_free_cmd_obj(cmd_obj);
goto exit;
}
--
2.29.0
Powered by blists - more mailing lists