net: stmmac: Remove unnecessary if statement brackets
authorAndrew Halaney <ahalaney@redhat.com>
Tue, 11 Apr 2023 20:04:02 +0000 (15:04 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Apr 2023 10:50:46 +0000 (12:50 +0200)
The brackets are unnecessary, remove them to match the coding style
used in the kernel.

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c

index 21aaa27..6807c4c 100644 (file)
@@ -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);