]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a13dd272416f98c5d0e7d9bd9dd74d392e85a18
tree5ca99c638e5145ddeecdd66c6c08dcb83e511fe1
parent334c86992982ad9d5483e95a68e1b3de3cb21956
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