Commit 59329d8b authored by Varka Bhadram's avatar Varka Bhadram Committed by David S. Miller

net: cpmac: fix missing a blank line after declarations

This patch insert a blank line after declaration
Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 96a8d3c1
...@@ -224,6 +224,7 @@ static void cpmac_dump_regs(struct net_device *dev) ...@@ -224,6 +224,7 @@ static void cpmac_dump_regs(struct net_device *dev)
{ {
int i; int i;
struct cpmac_priv *priv = netdev_priv(dev); struct cpmac_priv *priv = netdev_priv(dev);
for (i = 0; i < CPMAC_REG_END; i += 4) { for (i = 0; i < CPMAC_REG_END; i += 4) {
if (i % 16 == 0) { if (i % 16 == 0) {
if (i) if (i)
...@@ -238,6 +239,7 @@ static void cpmac_dump_regs(struct net_device *dev) ...@@ -238,6 +239,7 @@ static void cpmac_dump_regs(struct net_device *dev)
static void cpmac_dump_desc(struct net_device *dev, struct cpmac_desc *desc) static void cpmac_dump_desc(struct net_device *dev, struct cpmac_desc *desc)
{ {
int i; int i;
netdev_dbg(dev, "desc[%p]:", desc); netdev_dbg(dev, "desc[%p]:", desc);
for (i = 0; i < sizeof(*desc) / 4; i++) for (i = 0; i < sizeof(*desc) / 4; i++)
pr_debug(" %08x", ((u32 *)desc)[i]); pr_debug(" %08x", ((u32 *)desc)[i]);
...@@ -248,6 +250,7 @@ static void cpmac_dump_all_desc(struct net_device *dev) ...@@ -248,6 +250,7 @@ static void cpmac_dump_all_desc(struct net_device *dev)
{ {
struct cpmac_priv *priv = netdev_priv(dev); struct cpmac_priv *priv = netdev_priv(dev);
struct cpmac_desc *dump = priv->rx_head; struct cpmac_desc *dump = priv->rx_head;
do { do {
cpmac_dump_desc(dev, dump); cpmac_dump_desc(dev, dump);
dump = dump->next; dump = dump->next;
...@@ -257,6 +260,7 @@ static void cpmac_dump_all_desc(struct net_device *dev) ...@@ -257,6 +260,7 @@ static void cpmac_dump_all_desc(struct net_device *dev)
static void cpmac_dump_skb(struct net_device *dev, struct sk_buff *skb) static void cpmac_dump_skb(struct net_device *dev, struct sk_buff *skb)
{ {
int i; int i;
netdev_dbg(dev, "skb 0x%p, len=%d\n", skb, skb->len); netdev_dbg(dev, "skb 0x%p, len=%d\n", skb, skb->len);
for (i = 0; i < skb->len; i++) { for (i = 0; i < skb->len; i++) {
if (i % 16 == 0) { if (i % 16 == 0) {
...@@ -681,6 +685,7 @@ static void cpmac_clear_rx(struct net_device *dev) ...@@ -681,6 +685,7 @@ static void cpmac_clear_rx(struct net_device *dev)
struct cpmac_priv *priv = netdev_priv(dev); struct cpmac_priv *priv = netdev_priv(dev);
struct cpmac_desc *desc; struct cpmac_desc *desc;
int i; int i;
if (unlikely(!priv->rx_head)) if (unlikely(!priv->rx_head))
return; return;
desc = priv->rx_head; desc = priv->rx_head;
...@@ -703,6 +708,7 @@ static void cpmac_clear_tx(struct net_device *dev) ...@@ -703,6 +708,7 @@ static void cpmac_clear_tx(struct net_device *dev)
{ {
struct cpmac_priv *priv = netdev_priv(dev); struct cpmac_priv *priv = netdev_priv(dev);
int i; int i;
if (unlikely(!priv->desc_ring)) if (unlikely(!priv->desc_ring))
return; return;
for (i = 0; i < CPMAC_QUEUES; i++) { for (i = 0; i < CPMAC_QUEUES; i++) {
...@@ -821,6 +827,7 @@ static void cpmac_tx_timeout(struct net_device *dev) ...@@ -821,6 +827,7 @@ static void cpmac_tx_timeout(struct net_device *dev)
static int cpmac_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) static int cpmac_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{ {
struct cpmac_priv *priv = netdev_priv(dev); struct cpmac_priv *priv = netdev_priv(dev);
if (!(netif_running(dev))) if (!(netif_running(dev)))
return -EINVAL; return -EINVAL;
if (!priv->phy) if (!priv->phy)
...@@ -1181,6 +1188,7 @@ static int cpmac_probe(struct platform_device *pdev) ...@@ -1181,6 +1188,7 @@ static int cpmac_probe(struct platform_device *pdev)
static int cpmac_remove(struct platform_device *pdev) static int cpmac_remove(struct platform_device *pdev)
{ {
struct net_device *dev = platform_get_drvdata(pdev); struct net_device *dev = platform_get_drvdata(pdev);
unregister_netdev(dev); unregister_netdev(dev);
free_netdev(dev); free_netdev(dev);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment