]> www.infradead.org Git - users/willy/xarray.git/commit
m68k: cmpxchg: Use swap() to improve code
authorThorsten Blum <thorsten.blum@toblux.com>
Tue, 30 Jul 2024 23:45:07 +0000 (01:45 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 26 Aug 2024 08:24:34 +0000 (10:24 +0200)
commit61eb040228ba9a0657937a1e48d6696f66364a55
tree0600b73a2735cdbe1362cf66431b710b13c93890
parent8400291e289ee6b2bf9779ff1c83a291501f017b
m68k: cmpxchg: Use swap() to improve code

Remove the local variable tmp and use the swap() macro instead.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20240730234506.492743-2-thorsten.blum@toblux.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/cmpxchg.h