aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-10 19:23:24 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-10 20:01:01 -0500
commitff3fccb3d05756ec9fb44350b059d31a5e8e0fdc (patch)
treea1b7f7d24e90ebc0f057843df9bd65bbd435a880 /net/ipv4/route.c
parentdbdd9a52e38a4a93adfa4d0278801cce4fad98eb (diff)
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,
2047 unsigned hash; 2047 unsigned hash;
2048 2048
2049#ifdef CONFIG_IP_ROUTE_MULTIPATH 2049#ifdef CONFIG_IP_ROUTE_MULTIPATH
2050 if (res->fi && res->fi->fib_nhs > 1 && fl->oif == 0) 2050 if (res->fi && res->fi->fib_nhs > 1)
2051 fib_select_multipath(fl, res); 2051 fib_select_multipath(fl, res);
2052#endif 2052#endif
2053 2053