diff options
author | David Ahern <dsahern@gmail.com> | 2017-08-11 17:02:02 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-13 20:03:03 -0700 |
commit | 9438c871b2c12f5f829156149502ce3e2d0ece76 (patch) | |
tree | 11e20d8437ad10104c32b94f43989711df80e0ba | |
parent | 653ef6a3e4af21fda8e73061d4f1b069a9982301 (diff) |
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>
-rw-r--r-- | net/ipv4/route.c | 2 |
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; |