Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-4423 libcfs: Use swap() in cfs_hash_bd_order()
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
hash.c
diff --git
a/libcfs/libcfs/hash.c
b/libcfs/libcfs/hash.c
index
61fffb3
..
bae84df
100644
(file)
--- a/
libcfs/libcfs/hash.c
+++ b/
libcfs/libcfs/hash.c
@@
-798,12
+798,8
@@
cfs_hash_bd_order(struct cfs_hash_bd *bd1, struct cfs_hash_bd *bd2)
if (rc == 0) {
bd2->bd_bucket = NULL;
- } else if (rc > 0) { /* swab bd1 and bd2 */
- struct cfs_hash_bd tmp;
-
- tmp = *bd2;
- *bd2 = *bd1;
- *bd1 = tmp;
+ } else if (rc > 0) {
+ swap(*bd1, *bd2); /* swab bd1 and bd2 */
}
}