]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: rtl8188eu: hal_intf: Use x instead of x != NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 19 Mar 2016 10:46:38 +0000 (16:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Use x instead of x != NULL.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal_intf.c

index c49c86ccea769515e016059db0b6fe52d823b1cd..085f0fbd0c43e673896d40718708ab9a013621ca 100644 (file)
@@ -181,7 +181,7 @@ s32 rtw_hal_mgnt_xmit(struct adapter *adapt, struct xmit_frame *pmgntframe)
 
 s32 rtw_hal_init_xmit_priv(struct adapter *adapt)
 {
-       if (adapt->HalFunc.init_xmit_priv != NULL)
+       if (adapt->HalFunc.init_xmit_priv)
                return adapt->HalFunc.init_xmit_priv(adapt);
        return _FAIL;
 }