summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-08-11 17:02:02 -0700
committerDavid S. Miller <davem@davemloft.net>2017-08-13 20:03:03 -0700
commit9438c871b2c12f5f829156149502ce3e2d0ece76 (patch)
tree11e20d8437ad10104c32b94f43989711df80e0ba /net
parent653ef6a3e4af21fda8e73061d4f1b069a9982301 (diff)
downloadlinux-9438c871b2c12f5f829156149502ce3e2d0ece76.tar.bz2
net: ipv4: remove unnecessary check on orig_oif
rt_iif is going to be set to either 0 or orig_oif. If orig_oif is 0 it amounts to the same end result so remove the check. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-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 b88836e6b4a1..6810d2076b1b 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2236,7 +2236,7 @@ add:
if (!rth)
return ERR_PTR(-ENOBUFS);
- rth->rt_iif = orig_oif ? : 0;
+ rth->rt_iif = orig_oif;
if (res->table)
rth->rt_table_id = res->table->tb_id;