net: cpmac: fix proper spacing before return statement
authorVarka Bhadram <varkab@cdac.in>
Thu, 10 Jul 2014 05:35:44 +0000 (11:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jul 2014 07:40:37 +0000 (00:40 -0700)
This patch insert proper spaces before return statement.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpmac.c

index 3d3ead4a0f6f976a4e13a650b22ba1e5e3b2d6ab..b6efe3e0f1eef6a54b459e057c63ff5c60be3415 100644 (file)
@@ -283,6 +283,7 @@ static int cpmac_mdio_read(struct mii_bus *bus, int phy_id, int reg)
                    MDIO_PHY(phy_id));
        while ((val = cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0))) & MDIO_BUSY)
                cpu_relax();
+
        return MDIO_DATA(val);
 }
 
@@ -293,6 +294,7 @@ static int cpmac_mdio_write(struct mii_bus *bus, int phy_id,
                cpu_relax();
        cpmac_write(bus->priv, CPMAC_MDIO_ACCESS(0), MDIO_BUSY | MDIO_WRITE |
                    MDIO_REG(reg) | MDIO_PHY(phy_id) | MDIO_DATA(val));
+
        return 0;
 }
 
@@ -308,6 +310,7 @@ static int cpmac_mdio_reset(struct mii_bus *bus)
        ar7_device_reset(AR7_RESET_BIT_MDIO);
        cpmac_write(bus->priv, CPMAC_MDIO_CONTROL, MDIOC_ENABLE |
                    MDIOC_CLKDIV(clk_get_rate(cpmac_clk) / 2200000 - 1));
+
        return 0;
 }
 
@@ -537,6 +540,7 @@ fatal_error:
        cpmac_hw_stop(priv->dev);
        if (!schedule_work(&priv->reset_work))
                atomic_dec(&priv->reset_pending);
+
        return 0;
 
 }
@@ -883,6 +887,7 @@ static int cpmac_set_ringparam(struct net_device *dev,
        if (netif_running(dev))
                return -EBUSY;
        priv->ring_size = ring->rx_pending;
+
        return 0;
 }
 
@@ -1076,6 +1081,7 @@ static int cpmac_stop(struct net_device *dev)
        dma_free_coherent(&dev->dev, sizeof(struct cpmac_desc) *
                          (CPMAC_QUEUES + priv->ring_size),
                          priv->desc_ring, priv->dma_ring);
+
        return 0;
 }
 
@@ -1178,6 +1184,7 @@ static int cpmac_probe(struct platform_device *pdev)
                         "mac: %pM\n", (void *)mem->start, dev->irq,
                         priv->phy_name, dev->dev_addr);
        }
+
        return 0;
 
 fail:
@@ -1191,6 +1198,7 @@ static int cpmac_remove(struct platform_device *pdev)
 
        unregister_netdev(dev);
        free_netdev(dev);
+
        return 0;
 }