commit | 4d2a71d02b5c36190ce90455095b0ff003f117ca | [log] [tgz] |
---|---|---|
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | Wed Feb 24 03:12:47 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Feb 25 22:18:11 2016 -0800 |
tree | 5c51e478003a6e088954cbf22764d1b505a270a7 | |
parent | cb77659272af51e80099c93b0e65abbf43bdaad5 [diff] |
staging: lustre: libcfs: Use swap() in cfs_hash_bd_order() Use swap() function instead of using a temporary variable for swapping two variables. The Coccinelle semantic patch used to make this change is as follows: //<smpl> @@ type T; T a,b,c; @@ - a = b; - b = c; - c = a; + swap(b, c); //<smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>