diff options
author | Fabio Aiuto <fabioaiuto83@gmail.com> | 2021-04-07 15:49:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-07 17:13:04 +0200 |
commit | e338f5f0a0c3e4f8d7c5c4669ca9928ae6e5ddb9 (patch) | |
tree | 5eac7b1e6981ca6cf5d9abea3125837a7e2b9bb5 | |
parent | dd782523e8a51f65f9e76f5aeb98ea8269ef2cb3 (diff) | |
download | linux-e338f5f0a0c3e4f8d7c5c4669ca9928ae6e5ddb9.tar.bz2 |
staging: rtl8723bs: fix comparison in if condition
fix following post-commit checkpatch issue:
WARNING: Comparisons should place the constant on the right side of the test
1833: FILE: drivers/staging/rtl8723bs/os_dep/mlme_linux.c:151:
+ if (NULL == buff)
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/b32610045cad3c385b236266d7a10665ed202150.1617802415.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c index f5c94509ad71..0a16752f805b 100644 --- a/drivers/staging/rtl8723bs/os_dep/mlme_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/mlme_linux.c @@ -148,7 +148,7 @@ void rtw_report_sec_ie(struct adapter *adapter, u8 authmode, u8 *sec_ie) buff = NULL; if (authmode == WLAN_EID_VENDOR_SPECIFIC) { buff = rtw_zmalloc(IW_CUSTOM_MAX); - if (NULL == buff) + if (!buff) return; p = buff; |