diff options
author | Guo Zhengkui <guozhengkui@vivo.com> | 2022-04-12 08:46:20 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2022-05-25 20:45:13 +0200 |
commit | d9d58f0402a8bd14b980e6f41a5aa28aa0ca0e04 (patch) | |
tree | da3d16d9aee9562df180697757e4674a7ebce1ce /fs/ceph | |
parent | ceph: fix statx AT_STATX_DONT_SYNC vs AT_STATX_FORCE_SYNC check (diff) | |
download | linux-d9d58f0402a8bd14b980e6f41a5aa28aa0ca0e04.tar.xz linux-d9d58f0402a8bd14b980e6f41a5aa28aa0ca0e04.zip |
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>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions