mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
staging: r8188eu: place constants on the right side of tests
Conform to Linux kernel coding style. Reported by checkpatch: WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Rebecca Mckeever <remckee0@gmail.com> Link: https://lore.kernel.org/r/0f3db3586b3668d6d784e075bc52ffd88b0920d2.1648888461.git.remckee0@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c10f66779f
commit
5b547d5c8d
|
|
@ -189,7 +189,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;
|
||||
}
|
||||
|
|
@ -260,7 +260,7 @@ int rtw_cmd_thread(void *context)
|
|||
if (!pcmd)
|
||||
continue;
|
||||
|
||||
if (_FAIL == rtw_cmd_filter(pcmdpriv, pcmd)) {
|
||||
if (rtw_cmd_filter(pcmdpriv, pcmd) == _FAIL) {
|
||||
pcmd->res = H2C_DROPPED;
|
||||
goto post_process;
|
||||
}
|
||||
|
|
@ -613,7 +613,7 @@ u8 rtw_disassoc_cmd(struct adapter *padapter, u32 deauth_timeout_ms, bool enqueu
|
|||
res = rtw_enqueue_cmd(cmdpriv, cmdobj);
|
||||
} else {
|
||||
/* no need to enqueue, do the cmd hdl directly and free cmd parameter */
|
||||
if (H2C_SUCCESS != disconnect_hdl(padapter, (u8 *)param))
|
||||
if (disconnect_hdl(padapter, (u8 *)param) != H2C_SUCCESS)
|
||||
res = _FAIL;
|
||||
kfree(param);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user