staging: rtl8192u: r8192U_core: fix unnecessary parentheses code style issue
authorRaphaël Beamonte <raphael.beamonte@gmail.com>
Tue, 18 Aug 2015 16:58:14 +0000 (12:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:34 +0000 (18:24 -0700)
Two sets of parentheses were used to contain the same statement.
In those cases, one of them has been removed, as unnecessary.

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c

index d0020f1caa26d09148e107e83401cc2c36eb09bf..88108fb14280511d795fa7db40f1a161efd44752 100644 (file)
@@ -1859,7 +1859,7 @@ static int rtl8192_qos_handle_probe_response(struct r8192_priv *priv,
        if (priv->ieee80211->state != IEEE80211_LINKED)
                return ret;
 
-       if ((priv->ieee80211->iw_mode != IW_MODE_INFRA))
+       if (priv->ieee80211->iw_mode != IW_MODE_INFRA)
                return ret;
 
        if (network->flags & NETWORK_HAS_QOS_MASK) {
@@ -1923,7 +1923,7 @@ static int rtl8192_qos_association_resp(struct r8192_priv *priv,
        if (priv->ieee80211->state != IEEE80211_LINKED)
                return 0;
 
-       if ((priv->ieee80211->iw_mode != IW_MODE_INFRA))
+       if (priv->ieee80211->iw_mode != IW_MODE_INFRA)
                return 0;
 
        spin_lock_irqsave(&priv->ieee80211->lock, flags);