inetpeer: inetpeer_invalidate_tree() cleanup
authorEric Dumazet <edumazet@google.com>
Wed, 20 Jun 2012 04:02:10 +0000 (04:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jun 2012 21:38:55 +0000 (14:38 -0700)
commitda55737467c1c3bc02271039c088171d82e0796f
tree13598d84d783a3ca1b7789f17eda28f3554ef080
parent6dab015cf8c9d2fabb13d0332998bc440e9c6555
inetpeer: inetpeer_invalidate_tree() cleanup

No need to use cmpxchg() in inetpeer_invalidate_tree() since we hold
base lock.

Also use correct rcu annotations to remove sparse errors
(CONFIG_SPARSE_RCU_POINTER=y)

net/ipv4/inetpeer.c:144:19: error: incompatible types in comparison
expression (different address spaces)
net/ipv4/inetpeer.c:149:20: error: incompatible types in comparison
expression (different address spaces)
net/ipv4/inetpeer.c:595:10: error: incompatible types in comparison
expression (different address spaces)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inetpeer.c