sparc: Use swap() to fix Coccinelle warning
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 4 Apr 2024 11:23:14 +0000 (13:23 +0200)
committerAndreas Larsson <andreas@gaisler.com>
Mon, 22 Apr 2024 14:45:22 +0000 (16:45 +0200)
commit6c94284465ffefa9c5afc5288bb8cec2a020317f
treeaa2ca712d874000df66d0bc8ce1325939efc1f0f
parent839c4dece27426a3f24ca3cb9b6624ce576374bd
sparc: Use swap() to fix Coccinelle warning

Fixes the following Coccinelle/coccicheck warning reported by
swap.cocci:

WARNING opportunity for swap()

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240404112313.11898-2-thorsten.blum@toblux.com
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/include/asm/floppy_64.h