Staging: wlan-ng: Use x instead of x != NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Mon, 21 Mar 2016 15:16:15 +0000 (20:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Use x instead of x != NULL.This issue is detected by checkpatch.pl script.

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

index 88255ce2871b5e1ad6ff7215ce38d2b30c8e8f0c..fdfc82152312fea5acf1f27c5ec9a28f23c6988a 100644 (file)
@@ -156,7 +156,7 @@ static int p80211knetdev_open(netdevice_t *netdev)
                return -ENODEV;
 
        /* Tell the MSD to open */
-       if (wlandev->open != NULL) {
+       if (wlandev->open) {
                result = wlandev->open(wlandev);
                if (result == 0) {
                        netif_start_queue(wlandev->netdev);
@@ -186,7 +186,7 @@ static int p80211knetdev_stop(netdevice_t *netdev)
        int result = 0;
        wlandevice_t *wlandev = netdev->ml_priv;
 
-       if (wlandev->close != NULL)
+       if (wlandev->close)
                result = wlandev->close(wlandev);
 
        netif_stop_queue(wlandev->netdev);