aboutsummaryrefslogtreecommitdiffstats
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
parentipv4: Enforce max MTU metric at route insertion time. (diff)
downloadlinux-dev-2db2d67e4cf6100249bad575d9c13c16fd7b06dc.tar.xz
linux-dev-2db2d67e4cf6100249bad575d9c13c16fd7b06dc.zip
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>
-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 1678b575165b..a967df54a423 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)