Staging: wlan-ng: Use x instead of x != NULL.

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>
This commit is contained in:
Sandhya Bankar 2016-03-21 20:46:15 +05:30 committed by Greg Kroah-Hartman
parent 78822dc3c3
commit f3dbe30655
1 changed files with 2 additions and 2 deletions

View 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);