Commit 3f6ebcff authored by Yixing Liu's avatar Yixing Liu Committed by David S. Miller

net: amd: correct some format issues

There should be a blank line after declarations.
Signed-off-by: default avatarYixing Liu <liuyixing1@huawei.com>
Signed-off-by: default avatarWeihang Li <liweihang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca3fc0aa
...@@ -170,6 +170,7 @@ static void hplance_init(struct net_device *dev, struct dio_dev *d) ...@@ -170,6 +170,7 @@ static void hplance_init(struct net_device *dev, struct dio_dev *d)
static void hplance_writerap(void *priv, unsigned short value) static void hplance_writerap(void *priv, unsigned short value)
{ {
struct lance_private *lp = (struct lance_private *)priv; struct lance_private *lp = (struct lance_private *)priv;
do { do {
out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value);
} while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0);
...@@ -178,6 +179,7 @@ static void hplance_writerap(void *priv, unsigned short value) ...@@ -178,6 +179,7 @@ static void hplance_writerap(void *priv, unsigned short value)
static void hplance_writerdp(void *priv, unsigned short value) static void hplance_writerdp(void *priv, unsigned short value)
{ {
struct lance_private *lp = (struct lance_private *)priv; struct lance_private *lp = (struct lance_private *)priv;
do { do {
out_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP, value); out_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP, value);
} while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0);
...@@ -187,6 +189,7 @@ static unsigned short hplance_readrdp(void *priv) ...@@ -187,6 +189,7 @@ static unsigned short hplance_readrdp(void *priv)
{ {
struct lance_private *lp = (struct lance_private *)priv; struct lance_private *lp = (struct lance_private *)priv;
__u16 value; __u16 value;
do { do {
value = in_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP); value = in_be16(lp->base + HPLANCE_REGOFF + LANCE_RDP);
} while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 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