diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2023-01-17 14:02:23 +0800 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-01-22 18:42:34 +0100 |
commit | b4af09140a04ab5a4a20b3e14738ee56ddd37eff (patch) | |
tree | 9dbab671568308d68dcb56d2ffa5efb849625539 /arch/s390/kernel/perf_cpum_sf.c | |
parent | ca34cda73fd4c8fd93c488addc2eeb20af9e923f (diff) |
s390/vmem: 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/s390/mm/vmem.c:680:10-11: WARNING opportunity for swap().
[hca@linux.ibm.com: get rid of all temp variables]
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3786
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230117060223.58583-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/perf_cpum_sf.c')
0 files changed, 0 insertions, 0 deletions