aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/neighbour.c
diff options
context:
space:
mode:
authorWen Yang <wen.yang99@zte.com.cn>2018-12-11 12:20:46 +0800
committerDavid S. Miller <davem@davemloft.net>2018-12-14 13:36:38 -0800
commit390de1940441a72625283098dd0d9303d0ceb8fb (patch)
treefe816e47d8174b3d0f99110f4ac2460968e3aa5c /net/core/neighbour.c
parenttun: replace get_cpu_ptr with this_cpu_ptr when bh disabled (diff)
downloadlinux-dev-390de1940441a72625283098dd0d9303d0ceb8fb.tar.xz
linux-dev-390de1940441a72625283098dd0d9303d0ceb8fb.zip
net/ibmvnic: Remove tests of member address
The driver was checking for non-NULL address. - adapter->napi[i] This is pointless as these will be always non-NULL, since the 'dapter->napi' is allocated in init_napi(). It is safe to get rid of useless checks for addresses to fix the coccinelle warning: >>drivers/net/ethernet/ibm/ibmvnic.c: test of a variable/field address Since such statements always return true, they are redundant. Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: Paul Mackerras <paulus@samba.org> CC: Michael Ellerman <mpe@ellerman.id.au> CC: Thomas Falcon <tlfalcon@linux.ibm.com> CC: John Allen <jallen@linux.ibm.com> CC: "David S. Miller" <davem@davemloft.net> CC: linuxppc-dev@lists.ozlabs.org CC: netdev@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/neighbour.c')
0 files changed, 0 insertions, 0 deletions