net: neigh: remove redundant assignment to variable bucket
The variable bucket is being initialized with a value that is never read and it is being updated later with a new value in a following for-loop. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cd8ae20739
commit
f530eed65b
|
@ -3033,7 +3033,7 @@ static struct neighbour *neigh_get_first(struct seq_file *seq)
|
|||
struct net *net = seq_file_net(seq);
|
||||
struct neigh_hash_table *nht = state->nht;
|
||||
struct neighbour *n = NULL;
|
||||
int bucket = state->bucket;
|
||||
int bucket;
|
||||
|
||||
state->flags &= ~NEIGH_SEQ_IS_PNEIGH;
|
||||
for (bucket = 0; bucket < (1 << nht->hash_shift); bucket++) {
|
||||
|
|
Loading…
Reference in New Issue