Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314963
b: refs/heads/master
c: 3c521f2
h: refs/heads/master
i:
  314961: 30ddf76
  314959: 44524ec
v: v3
  • Loading branch information
David S. Miller committed Jul 5, 2012
1 parent 9fdab4c commit 62c7146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a263b3093641fb1ec377582c90986a7fd0625184
refs/heads/master: 3c521f2ba9646c5543963cbc2b9c9d3f02a82594
12 changes: 2 additions & 10 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,7 @@ static int rt_cache_seq_show(struct seq_file *seq, void *v)
"HHUptod\tSpecDst");
else {
struct rtable *r = v;
struct neighbour *n;
int len, HHUptod;

rcu_read_lock();
n = dst_get_neighbour_noref(&r->dst);
HHUptod = (n && (n->nud_state & NUD_CONNECTED)) ? 1 : 0;
rcu_read_unlock();
int len;

seq_printf(seq, "%s\t%08X\t%08X\t%8X\t%d\t%u\t%d\t"
"%08X\t%d\t%u\t%u\t%02X\t%d\t%1d\t%08X%n",
Expand All @@ -438,9 +432,7 @@ static int rt_cache_seq_show(struct seq_file *seq, void *v)
(int)((dst_metric(&r->dst, RTAX_RTT) >> 3) +
dst_metric(&r->dst, RTAX_RTTVAR)),
r->rt_key_tos,
-1,
HHUptod,
0, &len);
-1, 0, 0, &len);

seq_printf(seq, "%*s\n", 127 - len, "");
}
Expand Down

0 comments on commit 62c7146

Please sign in to comment.