Staging: rtl8188eu: Hal8188ERateAdaptive: Use x instead of x != NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 19 Mar 2016 10:44:30 +0000 (16:14 +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/Hal8188ERateAdaptive.c

index a108e80323271d52925b81966154b3953b6b2941..201c15b07f9ec9415b2c7d04a68dba769d98dcc5 100644 (file)
@@ -557,7 +557,7 @@ int ODM_RAInfo_Init(struct odm_dm_struct *dm_odm, u8 macid)
        u8 WirelessMode = 0xFF; /* invalid value */
        u8 max_rate_idx = 0x13; /* MCS7 */
 
-       if (dm_odm->pWirelessMode != NULL)
+       if (dm_odm->pWirelessMode)
                WirelessMode = *(dm_odm->pWirelessMode);
 
        if (WirelessMode != 0xFF) {