summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
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/ipv4/route.c
parent653ef6a3e4af21fda8e73061d4f1b069a9982301 (diff)
downloadop-kernel-dev-9438c871b2c12f5f829156149502ce3e2d0ece76.zip
op-kernel-dev-9438c871b2c12f5f829156149502ce3e2d0ece76.tar.gz
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/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 b88836e..6810d20 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;
OpenPOWER on IntegriCloud