Skip to content

Commit

Permalink
ipv4: Kill dst_copy_metrics() call from ipv4_blackhole_route().
Browse files Browse the repository at this point in the history
Blackhole routes have a COW metrics operation that returns NULL
always, therefore this dst_copy_metrics() call did absolutely
nothing.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 11, 2012
1 parent 710ab6c commit 2db2d67
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,6 @@ struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_or
new->__use = 1;
new->input = dst_discard;
new->output = dst_discard;
dst_copy_metrics(new, &ort->dst);

new->dev = ort->dst.dev;
if (new->dev)
Expand Down

0 comments on commit 2db2d67

Please sign in to comment.