diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2023-03-30 10:00:14 +0800 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-05-16 06:06:56 -0700 |
commit | 95f0e3a209b0045a56a06987d85981280f523270 (patch) | |
tree | 3c0209e26a76c10bda678a9f40c4f6762fb577a5 /init | |
parent | f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff) |
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions