]> 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)
commiteaa762e913b517f6ed8f49a70d338902077da758
treee5cd9db6ddfa5dc989e37baa87671af97f2c9f71
parenta93811075494ed76bcf78f5d5c24c51c5d8a7e9c
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