ia64: module: use swap() to make code cleaner
authorYang Guang <yang.guang5@zte.com.cn>
Fri, 14 Jan 2022 22:03:13 +0000 (14:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:24 +0000 (16:30 +0200)
commitf2fed022aa0a1bce86ca02e16f6c5832711e6424
tree23c59ab18b3c54c486dc00720aea855bb77986a6
parentff78f6679d2e223e073fcbdc8f70b6bc0abadf99
ia64: module: 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/20211104062642.1506539-1-yang.guang5@zte.com.cn
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Reported-by: Zeal Robot <zealci@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/module.c