]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Staging: rtl8188eu: usb_halinit: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 19 Mar 2016 10:50:25 +0000 (16:20 +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/usb_halinit.c

index 358762d3fb4592618b2074c2008ccd3935e50a45..0c7456f39fb5b8c12b177cdcf2ae46b8f333354e 100644 (file)
@@ -2078,7 +2078,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
 
 
        adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL);
-       if (adapt->HalData == NULL)
+       if (!adapt->HalData)
                DBG_88E("cant not alloc memory for HAL DATA\n");
 
        halfunc->hal_power_on = rtl8188eu_InitPowerOn;