summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-11 01:23:24 +0100
committerDavid S. Miller <davem@davemloft.net>2011-03-11 02:01:01 +0100
commitff3fccb3d05756ec9fb44350b059d31a5e8e0fdc (patch)
treea1b7f7d24e90ebc0f057843df9bd65bbd435a880 /net/ipv4/route.c
parentipv4: Remove redundant RCU locking in ip_check_mc(). (diff)
downloadlinux-ff3fccb3d05756ec9fb44350b059d31a5e8e0fdc.tar.xz
linux-ff3fccb3d05756ec9fb44350b059d31a5e8e0fdc.zip
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 <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
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