OpenCloudOS-Kernel/net/ceph/crush
Guo Zhengkui d9d58f0402 libceph: use swap() macro instead of taking tmp variable
Fix the following coccicheck warning:
net/ceph/crush/mapper.c:1077:8-9: WARNING opportunity for swap()

by using swap() for the swapping of variable values and drop
the tmp variable that is not needed any more.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-05-25 20:45:13 +02:00
..
crush.c libceph: decode CRUSH device/bucket types and names 2020-06-01 13:22:53 +02:00
crush_ln_table.h crush: sync up with userspace 2015-06-25 11:49:31 +03:00
hash.c libceph: replace HTTP links with HTTPS ones 2020-08-03 11:05:26 +02:00
mapper.c libceph: use swap() macro instead of taking tmp variable 2022-05-25 20:45:13 +02:00