[PATCH] drivers: wlan-ng: fixed a coding style issue
From: Jannik Becher
Date: Thu Sep 22 2016 - 14:01:28 EST
changed comparison "wlandev == NULL" to "!wlandev" to obtain the coding
style.
Signed-off-by: Jannik Becher <Becher.Jannik@xxxxxxxxx>
---
drivers/staging/wlan-ng/cfg80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index f46dfe6..5ba41c5 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -305,7 +305,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 */
--
2.9.3