diff --git a/net/ipv4/route.c b/net/ipv4/route.c index a7c1d6f798ea..30af9d771858 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1587,7 +1587,6 @@ static int __mkroute_input(struct sk_buff *skb, struct rtable *rth; int err; struct in_device *out_dev; - unsigned int flags = 0; bool do_cache; u32 itag = 0; @@ -1660,7 +1659,7 @@ static int __mkroute_input(struct sk_buff *skb, } rth->rt_genid = rt_genid_ipv4(dev_net(rth->dst.dev)); - rth->rt_flags = flags; + rth->rt_flags = 0; rth->rt_type = res->type; rth->rt_is_input = 1; rth->rt_iif = 0;