From: David S. Miller Date: Fri, 11 Mar 2011 00:23:24 +0000 (-0800) Subject: ipv4: Remove unnecessary test from ip_mkroute_input() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ff3fccb3d05756ec9fb44350b059d31a5e8e0fdc;p=linux-beck.git ipv4: Remove unnecessary test from ip_mkroute_input() fl->oif will always be zero on the input path, so there is no reason to test for that. Signed-off-by: David S. Miller --- diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f6730d94e307..a7ac90cb151d 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2047,7 +2047,7 @@ static int ip_mkroute_input(struct sk_buff *skb, unsigned hash; #ifdef CONFIG_IP_ROUTE_MULTIPATH - if (res->fi && res->fi->fib_nhs > 1 && fl->oif == 0) + if (res->fi && res->fi->fib_nhs > 1) fib_select_multipath(fl, res); #endif