net: __sock_gen_cookie() cleanup
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 09:11:01 +0000 (09:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:42:01 +0000 (12:42 +0000)
commit4ebf802cf1c6a87fd14e7936728c99e18d7ba794
tree0c745a13b644805bdb6f08f99251d486f1800911
parent4ffa1d1c6842a97e84cfbe56bfcf70edb23608e2
net: __sock_gen_cookie() cleanup

Adopt atomic64_try_cmpxchg() and remove the loop,
to make the intent more obvious.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock_diag.c