Commit f530eed6 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cd8ae207
...@@ -3033,7 +3033,7 @@ static struct neighbour *neigh_get_first(struct seq_file *seq) ...@@ -3033,7 +3033,7 @@ static struct neighbour *neigh_get_first(struct seq_file *seq)
struct net *net = seq_file_net(seq); struct net *net = seq_file_net(seq);
struct neigh_hash_table *nht = state->nht; struct neigh_hash_table *nht = state->nht;
struct neighbour *n = NULL; struct neighbour *n = NULL;
int bucket = state->bucket; int bucket;
state->flags &= ~NEIGH_SEQ_IS_PNEIGH; state->flags &= ~NEIGH_SEQ_IS_PNEIGH;
for (bucket = 0; bucket < (1 << nht->hash_shift); bucket++) { for (bucket = 0; bucket < (1 << nht->hash_shift); bucket++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment