aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <[email protected]>2016-02-24 03:12:47 +0530
committerGreg Kroah-Hartman <[email protected]>2016-02-25 22:18:11 -0800
commit4d2a71d02b5c36190ce90455095b0ff003f117ca (patch)
tree5c51e478003a6e088954cbf22764d1b505a270a7 /tools/perf/scripts/python
parentcb77659272af51e80099c93b0e65abbf43bdaad5 (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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions