ipv4: Remove unnecessary test from ip_mkroute_input()
authorDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2011 00:23:24 +0000 (16:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Mar 2011 01:01:01 +0000 (17:01 -0800)
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 <davem@davemloft.net>
net/ipv4/route.c

index f6730d94e307758499f37888144d88873dc23527..a7ac90cb151dbbeff5ad7159cf0548517f6cc0b1 100644 (file)
@@ -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