mirror of https://gitee.com/openkylin/linux.git
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:
parent
78822dc3c3
commit
f3dbe30655
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue