lib: rhashtable: Correct self-assignment in rhashtable.c
authorRishabh Bhatnagar <rishabhb@codeaurora.org>
Mon, 2 Jul 2018 16:35:34 +0000 (09:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jul 2018 14:25:37 +0000 (23:25 +0900)
commitc643ecf354e25ceeae14add9064d4d6253d75577
tree69a3af8d52fb52bcebff50e26c418d39ac76fdf1
parentd0fbad0aec1df29717fab736eb24c8a49cf2c70b
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: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c