Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb2c0ace authored by LABBE Corentin's avatar LABBE Corentin Committed by David S. Miller
Browse files

net: stmmac: remove useless parenthesis



This patch remove some useless parenthesis.

Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Reviewed-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 36a4a50f
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -716,15 +716,15 @@ static void stmmac_adjust_link(struct net_device *dev)
			new_state = 1;
			new_state = 1;
			switch (phydev->speed) {
			switch (phydev->speed) {
			case 1000:
			case 1000:
				if (likely((priv->plat->has_gmac) ||
				if (likely(priv->plat->has_gmac ||
					   (priv->plat->has_gmac4)))
					   priv->plat->has_gmac4))
					ctrl &= ~priv->hw->link.port;
					ctrl &= ~priv->hw->link.port;
				stmmac_hw_fix_mac_speed(priv);
				stmmac_hw_fix_mac_speed(priv);
				break;
				break;
			case 100:
			case 100:
			case 10:
			case 10:
				if (likely((priv->plat->has_gmac) ||
				if (likely(priv->plat->has_gmac ||
					   (priv->plat->has_gmac4))) {
					   priv->plat->has_gmac4)) {
					ctrl |= priv->hw->link.port;
					ctrl |= priv->hw->link.port;
					if (phydev->speed == SPEED_100) {
					if (phydev->speed == SPEED_100) {
						ctrl |= priv->hw->link.speed;
						ctrl |= priv->hw->link.speed;
+1 −1
Original line number Original line Diff line number Diff line
@@ -257,7 +257,7 @@ int stmmac_mdio_register(struct net_device *ndev)
			 * If an IRQ was provided to be assigned after
			 * If an IRQ was provided to be assigned after
			 * the bus probe, do it here.
			 * the bus probe, do it here.
			 */
			 */
			if ((!mdio_bus_data->irqs) &&
			if (!mdio_bus_data->irqs &&
			    (mdio_bus_data->probed_phy_irq > 0)) {
			    (mdio_bus_data->probed_phy_irq > 0)) {
				new_bus->irq[addr] =
				new_bus->irq[addr] =
					mdio_bus_data->probed_phy_irq;
					mdio_bus_data->probed_phy_irq;