arch/ia64/kernel/setup.c: use swap() to make code cleaner
authorYang Guang <yang.guang5@zte.com.cn>
Fri, 14 Jan 2022 22:03:16 +0000 (14:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:24 +0000 (16:30 +0200)
commit6c4420b09267050bc47b3999d80457a8dabaeb89
tree5ca99c638e5145ddeecdd66c6c08dcb83e511fe1
parentf2fed022aa0a1bce86ca02e16f6c5832711e6424
arch/ia64/kernel/setup.c: use swap() to make code cleaner

Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Link: https://lkml.kernel.org/r/20211104001908.695110-1-yang.guang5@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Cc: David Yang <davidcomponentone@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/kernel/setup.c