]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: ipv4: remove unnecessary check on orig_oif
authorDavid Ahern <dsahern@gmail.com>
Sat, 12 Aug 2017 00:02:02 +0000 (17:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 03:03:03 +0000 (20:03 -0700)
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>
net/ipv4/route.c

index b88836e6b4a1e26e5c00b4d2650f7a7e9814a1fc..6810d2076b1baed40a466518347bf559f720a0fc 100644 (file)
@@ -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;