Skip to contentSkip to conversation

Staging: rtl8723bs: core: rtw_cmd: Fixed two if-statement coding style issues

PATCH In review Manuel Palenzuela 2 participants 2 messages Oct 29, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)

---
 drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +2 -2
index 4cf09d947d32..1723473005e7 100644
@@ -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;
 		}
Signature · 1 line
2.26.2
maintainer
#1 lore raw
Quoted 2 lines · Manuel Palenzuela

Fixed two cases where the if-statement coding style wasn't following the guidelines. (rtw_cmd.c)

Please properly wrap your changelog comments at 72 columns like your editor asked you to :)

And what is with the file name in ()?

thanks,

greg k-h