Commit 1e765f31 authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Greg Kroah-Hartman

staging: ks7010: remove zero comparison

Comparison, equal to zero, is redundant

'if (foo == 0)'  is equal to  'if (!foo)'

Typical kernel coding style is to use the shorter form.

Remove unnecessary zero comparison.
Signed-off-by: default avatarTobin C. Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c133b9bd
...@@ -279,7 +279,7 @@ static int ks_wlan_set_essid(struct net_device *dev, ...@@ -279,7 +279,7 @@ static int ks_wlan_set_essid(struct net_device *dev,
/* for SLEEP MODE */ /* for SLEEP MODE */
/* Check if we asked for `any' */ /* Check if we asked for `any' */
if (dwrq->flags == 0) { if (!dwrq->flags) {
/* Just send an empty SSID list */ /* Just send an empty SSID list */
memset(priv->reg.ssid.body, 0, sizeof(priv->reg.ssid.body)); memset(priv->reg.ssid.body, 0, sizeof(priv->reg.ssid.body));
priv->reg.ssid.size = 0; priv->reg.ssid.size = 0;
...@@ -1531,7 +1531,7 @@ static int ks_wlan_get_scan(struct net_device *dev, ...@@ -1531,7 +1531,7 @@ static int ks_wlan_get_scan(struct net_device *dev,
return -EAGAIN; return -EAGAIN;
} }
if (priv->aplist.size == 0) { if (!priv->aplist.size) {
/* Client error, no scan results... /* Client error, no scan results...
* The caller need to restart the scan. * The caller need to restart the scan.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment