]> git.baikalelectronics.ru Git - kernel.git/commit
neighbour: Remove redundant initialization of 'bucket'
authorYang Li <yang.lee@linux.alibaba.com>
Sat, 8 May 2021 10:03:05 +0000 (18:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2021 21:25:13 +0000 (14:25 -0700)
commit494ea8c10f434ae5af3b89521b13d57ca275544a
treef230cc3c7dcb8d07cd72d04ffcecb3e31c921c58
parent8c173663e32080583dfaeb8f70c8e234d09a9cf5
neighbour: Remove redundant initialization of 'bucket'

Integer variable 'bucket' is being initialized however
this value is never read as 'bucket' is assigned zero
in for statement. Remove the redundant assignment.

Cleans up clang warning:

net/core/neighbour.c:3144:6: warning: Value stored to 'bucket' during
its initialization is never read [clang-analyzer-deadcode.DeadStores]

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c