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.stricted.de/?a=commitdiff_plain;h=ff3fccb3d05756ec9fb44350b059d31a5e8e0fdc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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