diff options
author | 2020-10-27 00:23:10 +0100 | |
---|---|---|
committer | 2020-10-27 13:16:23 +0100 | |
commit | 34557e233cf86cc3d7a0ec1519b2add434d950f5 (patch) | |
tree | 0aed1daf2620a2a79f3dbc80c317fc2ed5227f18 /drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | |
parent | staging: kpc2000: kpc_dma: rename show function per convention (diff) | |
download | linux-dev-34557e233cf86cc3d7a0ec1519b2add434d950f5.tar.xz linux-dev-34557e233cf86cc3d7a0ec1519b2add434d950f5.zip |
staging: rtl8723bs: Rewrite comparison to NULL
Rewrite comparison to NULL by modifying (p != NULL) to (p).
Issue reported by checkpatch.
Signed-off-by: Izabela Bakollari <izabela.bakollari@gmail.com>
Link: https://lore.kernel.org/r/20201026232310.48128-1-izabela.bakollari@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/core/rtw_pwrctrl.c')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index 6ac9184d59a6..0d8aa7a2469e 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -1173,13 +1173,13 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter) void rtw_free_pwrctrl_priv(struct adapter *adapter) { #ifdef CONFIG_PNO_SUPPORT - if (pwrctrlpriv->pnlo_info != NULL) + if (pwrctrlpriv->pnlo_info) printk("****** pnlo_info memory leak********\n"); - if (pwrctrlpriv->pscan_info != NULL) + if (pwrctrlpriv->pscan_info) printk("****** pscan_info memory leak********\n"); - if (pwrctrlpriv->pno_ssid_list != NULL) + if (pwrctrlpriv->pno_ssid_list) printk("****** pno_ssid_list memory leak********\n"); #endif } |