net: stmmac: remove useless parenthesis
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 15 Feb 2017 09:46:38 +0000 (10:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2017 18:20:53 +0000 (13:20 -0500)
This patch remove some useless parenthesis.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Reviewed-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c

index 7251871..ee1dbf4 100644 (file)
@@ -716,15 +716,15 @@ static void stmmac_adjust_link(struct net_device *dev)
                        new_state = 1;
                        switch (phydev->speed) {
                        case 1000:
-                               if (likely((priv->plat->has_gmac) ||
-                                          (priv->plat->has_gmac4)))
+                               if (likely(priv->plat->has_gmac ||
+                                          priv->plat->has_gmac4))
                                        ctrl &= ~priv->hw->link.port;
                                stmmac_hw_fix_mac_speed(priv);
                                break;
                        case 100:
                        case 10:
-                               if (likely((priv->plat->has_gmac) ||
-                                          (priv->plat->has_gmac4))) {
+                               if (likely(priv->plat->has_gmac ||
+                                          priv->plat->has_gmac4)) {
                                        ctrl |= priv->hw->link.port;
                                        if (phydev->speed == SPEED_100) {
                                                ctrl |= priv->hw->link.speed;
index d9893cf..a695773 100644 (file)
@@ -257,7 +257,7 @@ int stmmac_mdio_register(struct net_device *ndev)
                         * If an IRQ was provided to be assigned after
                         * the bus probe, do it here.
                         */
-                       if ((!mdio_bus_data->irqs) &&
+                       if (!mdio_bus_data->irqs &&
                            (mdio_bus_data->probed_phy_irq > 0)) {
                                new_bus->irq[addr] =
                                        mdio_bus_data->probed_phy_irq;