Commit c643ecf3 authored by Rishabh Bhatnagar's avatar Rishabh Bhatnagar Committed by David S. Miller

lib: rhashtable: Correct self-assignment in rhashtable.c

In file lib/rhashtable.c line 777, skip variable is assigned to
itself. The following error was observed:

lib/rhashtable.c:777:41: warning: explicitly assigning value of
variable of type 'int' to itself [-Wself-assign] error, forbidden
warning: rhashtable.c:777
This error was found when compiling with Clang 6.0. Change it to iter->skip.
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d0fbad0a
...@@ -774,7 +774,7 @@ int rhashtable_walk_start_check(struct rhashtable_iter *iter) ...@@ -774,7 +774,7 @@ int rhashtable_walk_start_check(struct rhashtable_iter *iter)
skip++; skip++;
if (list == iter->list) { if (list == iter->list) {
iter->p = p; iter->p = p;
skip = skip; iter->skip = skip;
goto found; goto found;
} }
} }
......
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