summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-10 07:03:43 -0700
committerDavid S. Miller <davem@davemloft.net>2012-07-10 22:40:16 -0700
commit2db2d67e4cf6100249bad575d9c13c16fd7b06dc (patch)
tree3b1bf03fa8464dfbca1f524c5f8de748b05f2331 /net
parent710ab6c03122cf464510f8c86eb0a179e80b2d61 (diff)
downloadop-kernel-dev-2db2d67e4cf6100249bad575d9c13c16fd7b06dc.zip
op-kernel-dev-2db2d67e4cf6100249bad575d9c13c16fd7b06dc.tar.gz
ipv4: Kill dst_copy_metrics() call from ipv4_blackhole_route().
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/route.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 1678b57..a967df5 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -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)
OpenPOWER on IntegriCloud