]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: wlan-ng: fix comparison to NULL issue.
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 26 May 2016 03:22:07 +0000 (23:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:31:46 +0000 (17:31 +0200)
This patch fixes comparison to NULL could be written "wlandev" found
by checkpatch.pl tool.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2usb.c

index 82be34353470c474fc57a89e799efb1e83f5d80b..0463ec16802c0ae264bc4444aac109f74e985217 100644 (file)
@@ -137,7 +137,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
        wlandevice_t *wlandev;
 
        wlandev = (wlandevice_t *)usb_get_intfdata(interface);
-       if (wlandev != NULL) {
+       if (wlandev) {
                LIST_HEAD(cleanlist);
                hfa384x_usbctlx_t *ctlx, *temp;
                unsigned long flags;