Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2db2d67e authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 710ab6c0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)