]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13b88243bbf8c0cad7cf58277edb7563336ef18b
treee5cd9db6ddfa5dc989e37baa87671af97f2c9f71
parent326f7423874564b407603e72438233cf85d37abc
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