Staging: rtl8723bs: core: rtw_cmd: Fixed two if-statement coding style issues
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)
Signed-off-by Manuel Palenzuela <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +2 -2
@@ -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
Greg KH
maintainerQuoted 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