Staging: wlan-ng: Convert explicit comparison to NULL to !x.
PATCH v3 1/1 Staging: wlan-ng: Convert explicit comparison to NULL to !x.
Convert explicit comparison to NULL to !x.
Signed-off-by Sandhya Bankar <[email protected]>
---
Changes in v3:
*In v2,missed to add comment below --- so adding comment *Adding Full name in signed-off-by line.
drivers/staging/wlan-ng/cfg80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/cfg80211.c +2 -2
@@ -303,7 +303,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,memset (sinfo,0 ,sizeof (*sinfo)); -if ((wlandev ==NULL ) || (wlandev->msdstate !=WLAN_MSD_RUNNING )) +if (!wlandev || (wlandev->msdstate !=WLAN_MSD_RUNNING ))return -EOPNOTSUPP ;/* build request message */
@@ -312,7 +312,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, quality.dbm.status = P80211ENUM_msgitem_status_data_ok;/* send message to nsd */ -if (wlandev->mlmerequest ==NULL ) +if (!wlandev->mlmerequest)return -EOPNOTSUPP ; result = wlandev->mlmerequest (wlandev, (struct p80211msg *) &quality);
Signature · 1 line
1.8.3.4