diff options
Diffstat (limited to 'drivers/net/ethernet/sun/niu.c')
-rw-r--r-- | drivers/net/ethernet/sun/niu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c index 46cb7f8955a2..4bb04aaf9650 100644 --- a/drivers/net/ethernet/sun/niu.c +++ b/drivers/net/ethernet/sun/niu.c | |||
@@ -9532,7 +9532,7 @@ static struct niu_parent *niu_get_parent(struct niu *np, | |||
9532 | p = niu_new_parent(np, id, ptype); | 9532 | p = niu_new_parent(np, id, ptype); |
9533 | 9533 | ||
9534 | if (p) { | 9534 | if (p) { |
9535 | char port_name[6]; | 9535 | char port_name[8]; |
9536 | int err; | 9536 | int err; |
9537 | 9537 | ||
9538 | sprintf(port_name, "port%d", port); | 9538 | sprintf(port_name, "port%d", port); |
@@ -9553,7 +9553,7 @@ static void niu_put_parent(struct niu *np) | |||
9553 | { | 9553 | { |
9554 | struct niu_parent *p = np->parent; | 9554 | struct niu_parent *p = np->parent; |
9555 | u8 port = np->port; | 9555 | u8 port = np->port; |
9556 | char port_name[6]; | 9556 | char port_name[8]; |
9557 | 9557 | ||
9558 | BUG_ON(!p || p->ports[port] != np); | 9558 | BUG_ON(!p || p->ports[port] != np); |
9559 | 9559 | ||