net: Remove redundant oif checks in rt6_device_match
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 25 Sep 2015 21:22:54 +0000 (15:22 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 05:30:24 +0000 (22:30 -0700)
commit17fb0b2b90568182bc969cbe0d76fa07079267e4
treee5cd9db6ddfa5dc989e37baa87671af97f2c9f71
parent49d28b5642444d82bd23b9333785480d265420d1
net: Remove redundant oif checks in rt6_device_match

The oif has already been checked that it is non-zero; the 2 additional
checks on oif within that if (oif) {...} block are redundant.

CC: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c