x86/unwind/orc: Use swap() instead of open coding it
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 30 Mar 2023 02:00:14 +0000 (10:00 +0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 16 May 2023 13:06:56 +0000 (06:06 -0700)
commit95f0e3a209b0045a56a06987d85981280f523270
tree3c0209e26a76c10bda678a9f40c4f6762fb577a5
parentf1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6
x86/unwind/orc: Use swap() instead of open coding it

Swap is a function interface that provides exchange function. To avoid
code duplication, we can use swap function.

./arch/x86/kernel/unwind_orc.c:235:16-17: WARNING opportunity for swap().

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4641
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230330020014.40489-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
arch/x86/kernel/unwind_orc.c