linux/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_ln_table.h
crush.c
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