[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201028212837.28030-1-manuelpalenzuelamerino@gmail.com>
Date: Wed, 28 Oct 2020 21:28:37 +0000
From: Manuel Palenzuela <manuelpalenzuelamerino@...il.com>
To: gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Manuel Palenzuela <manuelpalenzuelamerino@...il.com>
Subject: [PATCH] Staging: rtl8723bs: core: rtw_cmd: Fixed two if-statement coding style issues
Fixed two cases where the if-statement coding style wasn't following the guidelines. (rtw_cmd.c)
Signed-off-by: Manuel Palenzuela <manuelpalenzuelamerino@...il.com>
---
drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index 4cf09d947d32..1723473005e7 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -344,7 +344,7 @@ int 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;
}
@@ -460,7 +460,7 @@ int rtw_cmd_thread(void *context)
cmd_start_time = jiffies;
- if (_FAIL == rtw_cmd_filter(pcmdpriv, pcmd)) {
+ if (rtw_cmd_filter(pcmdpriv, pcmd) == _FAIL) {
pcmd->res = H2C_DROPPED;
goto post_process;
}
--
2.26.2
Powered by blists - more mailing lists