aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Halaney <[email protected]>2023-04-11 15:04:02 -0500
committerPaolo Abeni <[email protected]>2023-04-13 12:50:46 +0200
commit7c6b942b81caec74fab53dac508e3f2541867d0a (patch)
tree321a30357b095fbd1b2533554d896e926995e7c5
parent25926a703ec155c99a28f6730b79e9da3acc0b10 (diff)
net: stmmac: Remove unnecessary if statement brackets
The brackets are unnecessary, remove them to match the coding style used in the kernel. Signed-off-by: Andrew Halaney <[email protected]> Reviewed-by: Jesse Brandeburg <[email protected]> Tested-by: Brian Masney <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index 21aaa2730ac8..6807c4c1a0a2 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -281,9 +281,8 @@ static int stmmac_mdio_read_c22(struct mii_bus *bus, int phyaddr, int phyreg)
value |= (phyreg << priv->hw->mii.reg_shift) & priv->hw->mii.reg_mask;
value |= (priv->clk_csr << priv->hw->mii.clk_csr_shift)
& priv->hw->mii.clk_csr_mask;
- if (priv->plat->has_gmac4) {
+ if (priv->plat->has_gmac4)
value |= MII_GMAC4_READ;
- }
data = stmmac_mdio_read(priv, data, value);