File iplink_bond_slave-show-mii_status-only-once.patch of Package iproute2

From: Michal Kubecek <mkubecek@suse.cz>
Date: Fri, 28 Feb 2014 14:42:55 +0100
Subject: iplink_bond_slave: show mii_status only once
Patch-mainline: submitted
References: fate#316940

With "ip -d link show", bonding slave mii status is displayed
twice, once as a number and once as a name.

Fixes: 730d3f61 ("iplink: add support for bonding slave")
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
---
 ip/iplink_bond_slave.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ip/iplink_bond_slave.c b/ip/iplink_bond_slave.c
index bb4e1d6..8f3fc6c 100644
--- a/ip/iplink_bond_slave.c
+++ b/ip/iplink_bond_slave.c
@@ -43,7 +43,6 @@ static void print_slave_mii_status(FILE *f, struct rtattr *tb)
 {
 	unsigned int status = rta_getattr_u8(tb);
 
-	fprintf(f, "mii_status %d ", status);
 	if (status >= sizeof(slave_mii_status) / sizeof(slave_mii_status[0]))
 		fprintf(f, "mii_status %d ", status);
 	else
-- 
1.8.1.4