sparc32: make __cmpxchg_u32() return u32
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 2 Apr 2024 01:58:50 +0000 (21:58 -0400)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 10 Apr 2024 05:06:00 +0000 (22:06 -0700)
commit2f528020a29021a9e5da1b85488993e8d9808a38
tree52b0fdaf341aa735b39fa9158356d68e5e927e85
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
sparc32: make __cmpxchg_u32() return u32

Conversion between u32 and unsigned long is tautological there,
and the only use of return value is to return it from
__cmpxchg() (which return unsigned long).

Get rid of explicit casts in __cmpxchg_u32() call, while we are
at it - normal conversions for arguments will do just fine.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
arch/sparc/include/asm/cmpxchg_32.h
arch/sparc/lib/atomic32.c