summaryrefslogtreecommitdiff
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-11 03:23:24 +0300
committerDavid S. Miller <davem@davemloft.net>2011-03-11 04:01:01 +0300
commitff3fccb3d05756ec9fb44350b059d31a5e8e0fdc (patch)
treea1b7f7d24e90ebc0f057843df9bd65bbd435a880 /net/ipv4/route.c
parentdbdd9a52e38a4a93adfa4d0278801cce4fad98eb (diff)
downloadlinux-ff3fccb3d05756ec9fb44350b059d31a5e8e0fdc.tar.xz
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 'net/ipv4/route.c')
-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