summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFabio Aiuto <fabioaiuto83@gmail.com>2021-04-10 16:20:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-11 08:45:03 +0200
commitd290bb31a718baf53e5c0e32c195b1013cfdedc5 (patch)
tree23af9be9d346d2419cb4568a8b1dd410754c68a8 /drivers
parent4ca39cd7459da838a0301c9eab86307015bfd877 (diff)
downloadlinux-d290bb31a718baf53e5c0e32c195b1013cfdedc5.tar.bz2
staging: rtl8723bs: put constant on the right side of the test
fix following post-commit hook checpatch issues: WARNING: Comparisons should place the constant on the right side of the test 287: FILE: drivers/staging/rtl8723bs/hal/sdio_halinit.c:738: + if (_SUCCESS != ret) Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/e19cff736413714dea4265c17b512882d051a311.1618064274.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8723bs/hal/sdio_halinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
index d0606267d947..049112a08776 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
@@ -735,7 +735,7 @@ static u32 rtl8723bs_hal_init(struct adapter *padapter)
/* init LLT after tx buffer boundary is defined */
ret = rtl8723b_InitLLTTable(padapter);
- if (_SUCCESS != ret)
+ if (ret != _SUCCESS)
return _FAIL;
/* */