Remove redundant parentheses Signed-off-by: Joel Camilo Chang Gonzalez <jcchangg3@xxxxxxxxx> --- drivers/staging/ks7010/ks_wlan_net.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index e03c87f0bfe7..eef1a1e70088 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -193,14 +193,14 @@ static int ks_wlan_set_freq(struct net_device *dev, fwrq->freq.m = c + 1; } /* Setting by channel number */ - if ((fwrq->freq.m > 1000) || (fwrq->freq.e > 0)) + if (fwrq->freq.m > 1000 || fwrq->freq.e > 0) return -EOPNOTSUPP; channel = fwrq->freq.m; /* We should do a better check than that, * based on the card capability !!! */ - if ((channel < 1) || (channel > 14)) { + if (channel < 1 || channel > 14) { netdev_dbg(dev, "%s: New channel value of %d is invalid!\n", dev->name, fwrq->freq.m); return -EINVAL; @@ -663,7 +663,7 @@ static int ks_wlan_set_rts(struct net_device *dev, struct iw_request_info *info, /* for SLEEP MODE */ if (vwrq->rts.disabled) rthr = 2347; - if ((rthr < 0) || (rthr > 2347)) + if (rthr < 0 || rthr > 2347) return -EINVAL; priv->reg.rts = rthr; @@ -701,7 +701,7 @@ static int ks_wlan_set_frag(struct net_device *dev, /* for SLEEP MODE */ if (vwrq->frag.disabled) fthr = 2346; - if ((fthr < 256) || (fthr > 2346)) + if (fthr < 256 || fthr > 2346) return -EINVAL; fthr &= ~0x1; /* Get an even value - is it really needed ??? */ @@ -780,7 +780,7 @@ static int ks_wlan_set_encode(struct net_device *dev, return -EINVAL; /* for SLEEP MODE */ - if ((index < 0) || (index > 4)) + if (index < 0 || index > 4) return -EINVAL; index = (index == 0) ? priv->reg.wep_index : (index - 1); @@ -881,7 +881,7 @@ static int ks_wlan_get_encode(struct net_device *dev, } /* Which key do we want ? -1 -> tx index */ - if ((index < 0) || (index >= 4)) + if (index < 0 || index >= 4) index = priv->reg.wep_index; if (priv->reg.privacy_invoked) { enc->flags &= ~IW_ENCODE_DISABLED; -- 2.37.2 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel