Skip to content

Commit 55064ef

Browse files
bhadramdavem330
authored andcommitted
net: cpmac: fix proper spacing before return statement
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>
1 parent 59329d8 commit 55064ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/net/ethernet/ti/cpmac.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ static int cpmac_mdio_read(struct mii_bus *bus, int phy_id, int reg)
283283
MDIO_PHY(phy_id));
284284
while ((val = cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0))) & MDIO_BUSY)
285285
cpu_relax();
286+
286287
return MDIO_DATA(val);
287288
}
288289

@@ -293,6 +294,7 @@ static int cpmac_mdio_write(struct mii_bus *bus, int phy_id,
293294
cpu_relax();
294295
cpmac_write(bus->priv, CPMAC_MDIO_ACCESS(0), MDIO_BUSY | MDIO_WRITE |
295296
MDIO_REG(reg) | MDIO_PHY(phy_id) | MDIO_DATA(val));
297+
296298
return 0;
297299
}
298300

@@ -308,6 +310,7 @@ static int cpmac_mdio_reset(struct mii_bus *bus)
308310
ar7_device_reset(AR7_RESET_BIT_MDIO);
309311
cpmac_write(bus->priv, CPMAC_MDIO_CONTROL, MDIOC_ENABLE |
310312
MDIOC_CLKDIV(clk_get_rate(cpmac_clk) / 2200000 - 1));
313+
311314
return 0;
312315
}
313316

@@ -537,6 +540,7 @@ static int cpmac_poll(struct napi_struct *napi, int budget)
537540
cpmac_hw_stop(priv->dev);
538541
if (!schedule_work(&priv->reset_work))
539542
atomic_dec(&priv->reset_pending);
543+
540544
return 0;
541545

542546
}
@@ -883,6 +887,7 @@ static int cpmac_set_ringparam(struct net_device *dev,
883887
if (netif_running(dev))
884888
return -EBUSY;
885889
priv->ring_size = ring->rx_pending;
890+
886891
return 0;
887892
}
888893

@@ -1076,6 +1081,7 @@ static int cpmac_stop(struct net_device *dev)
10761081
dma_free_coherent(&dev->dev, sizeof(struct cpmac_desc) *
10771082
(CPMAC_QUEUES + priv->ring_size),
10781083
priv->desc_ring, priv->dma_ring);
1084+
10791085
return 0;
10801086
}
10811087

@@ -1178,6 +1184,7 @@ static int cpmac_probe(struct platform_device *pdev)
11781184
"mac: %pM\n", (void *)mem->start, dev->irq,
11791185
priv->phy_name, dev->dev_addr);
11801186
}
1187+
11811188
return 0;
11821189

11831190
fail:
@@ -1191,6 +1198,7 @@ static int cpmac_remove(struct platform_device *pdev)
11911198

11921199
unregister_netdev(dev);
11931200
free_netdev(dev);
1201+
11941202
return 0;
11951203
}
11961204

0 commit comments

Comments
 (0)