aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs
diff options
context:
space:
mode:
authorWambui Karuga <wambui.karugax@gmail.com>2019-10-10 16:20:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-13 10:00:35 +0200
commitc86673e884199206c46d356551288d91a53e7b1a (patch)
tree3419fbc7ce6fa07d365d8292d2001c0cf7535125 /drivers/staging/rtl8723bs
parentstaging: fbtft: fbtft-core: Fix last line displayed on fbcon (diff)
downloadlinux-dev-c86673e884199206c46d356551288d91a53e7b1a.tar.xz
linux-dev-c86673e884199206c46d356551288d91a53e7b1a.zip
staging: rtl8723bs: Remove comparison to NULL
Remove comparison to NULL in drivers/staging/rtl8723bs/core/rtw_ap.c:1449. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Link: https://lore.kernel.org/r/20191010132058.20887-1-wambui.karugax@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_ap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 80027ac765d0..7117d16a30f9 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
@@ -1447,7 +1447,7 @@ u8 rtw_ap_set_pairwise_key(struct adapter *padapter, struct sta_info *psta)
u8 res = _SUCCESS;
ph2c = rtw_zmalloc(sizeof(struct cmd_obj));
- if (ph2c == NULL) {
+ if (!ph2c) {
res = _FAIL;
goto exit;
}