Skip to content

Commit

Permalink
br2684: Remove unnecessary formatting macros b1 and bs
Browse files Browse the repository at this point in the history
Use vsprintf extension %pI4 instead.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JoePerches authored and davem330 committed Jul 31, 2015
1 parent e90fba8 commit 85b1d8b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions net/atm/br2684.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,13 +802,10 @@ static int br2684_seq_show(struct seq_file *seq, void *v)
(brdev->payload == p_bridged) ? "bridged" : "routed",
brvcc->copies_failed, brvcc->copies_needed);
#ifdef CONFIG_ATM_BR2684_IPFILTER
#define b1(var, byte) ((u8 *) &brvcc->filter.var)[byte]
#define bs(var) b1(var, 0), b1(var, 1), b1(var, 2), b1(var, 3)
if (brvcc->filter.netmask != 0)
seq_printf(seq, " filter=%d.%d.%d.%d/"
"%d.%d.%d.%d\n", bs(prefix), bs(netmask));
#undef bs
#undef b1
seq_printf(seq, " filter=%pI4/%pI4\n",
&brvcc->filter.prefix,
&brvcc->filter.netmask);
#endif /* CONFIG_ATM_BR2684_IPFILTER */
}
return 0;
Expand Down

0 comments on commit 85b1d8b

Please sign in to comment.