libceph: use swap() macro instead of taking tmp variable
authorGuo Zhengkui <guozhengkui@vivo.com>
Tue, 12 Apr 2022 06:46:20 +0000 (14:46 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2022 18:45:13 +0000 (20:45 +0200)
commitd9d58f0402a8bd14b980e6f41a5aa28aa0ca0e04
treeda3d16d9aee9562df180697757e4674a7ebce1ce
parent261998c30004f0e6eeddd24b1eb5e504cfacee18
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>
net/ceph/crush/mapper.c