diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-30 01:43:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-30 01:43:33 -0400 |
commit | 8cf14e38372d84ea09ba45fb60b61f6e36c18546 (patch) | |
tree | 56f777828ff7109808407b8a348c31ac74d5b558 /drivers/net/bonding/bond_main.c | |
parent | 9edb8bb68b5ea63061ba833831b00c229ac9fbd2 (diff) |
net: easy removals of HIPQUAD using %pI4 format
As a bonus, removes some unnecessary byteswapping.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 36e89e310e8a..f2da031fd7ba 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -3221,7 +3221,6 @@ static void bond_info_show_master(struct seq_file *seq) | |||
3221 | struct bonding *bond = seq->private; | 3221 | struct bonding *bond = seq->private; |
3222 | struct slave *curr; | 3222 | struct slave *curr; |
3223 | int i; | 3223 | int i; |
3224 | u32 target; | ||
3225 | 3224 | ||
3226 | read_lock(&bond->curr_slave_lock); | 3225 | read_lock(&bond->curr_slave_lock); |
3227 | curr = bond->curr_active_slave; | 3226 | curr = bond->curr_active_slave; |
@@ -3275,8 +3274,7 @@ static void bond_info_show_master(struct seq_file *seq) | |||
3275 | continue; | 3274 | continue; |
3276 | if (printed) | 3275 | if (printed) |
3277 | seq_printf(seq, ","); | 3276 | seq_printf(seq, ","); |
3278 | target = ntohl(bond->params.arp_targets[i]); | 3277 | seq_printf(seq, " %pI4", &bond->params.arp_targets[i]); |
3279 | seq_printf(seq, " %d.%d.%d.%d", HIPQUAD(target)); | ||
3280 | printed = 1; | 3278 | printed = 1; |
3281 | } | 3279 | } |
3282 | seq_printf(seq, "\n"); | 3280 | seq_printf(seq, "\n"); |