diff options
author | Guo Zhengkui <[email protected]> | 2022-04-12 14:46:20 +0800 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2022-05-25 20:45:13 +0200 |
commit | d9d58f0402a8bd14b980e6f41a5aa28aa0ca0e04 (patch) | |
tree | da3d16d9aee9562df180697757e4674a7ebce1ce /lib/netdev-notifier-error-inject.c | |
parent | 261998c30004f0e6eeddd24b1eb5e504cfacee18 (diff) |
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 <[email protected]>
Reviewed-by: Ilya Dryomov <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions