From: Kevin McKinney Date: Thu, 26 May 2016 03:22:07 +0000 (-0400) Subject: Staging: wlan-ng: fix comparison to NULL issue. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f0c9efe5627ed12b469dae7434795ed625936bf;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: wlan-ng: fix comparison to NULL issue. This patch fixes comparison to NULL could be written "wlandev" found by checkpatch.pl tool. Signed-off-by: Kevin McKinney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c index 82be34353470..0463ec16802c 100644 --- a/drivers/staging/wlan-ng/prism2usb.c +++ b/drivers/staging/wlan-ng/prism2usb.c @@ -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;