aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/ceph_hash.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-18 19:50:55 -0500
committerSage Weil <sage@newdream.net>2009-11-20 17:24:26 -0500
commitcfea1cf42b614583c02727d5bffd5a2384e92bda (patch)
tree74b65b8a1c507c5751150553a28def40cd51b09b /fs/ceph/ceph_hash.c
parentb9bfb93ce2b1ef668254f0b9e16fcc5246d65d8e (diff)
ceph: small cleanup in hash function
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ceph_hash.c')
-rw-r--r--fs/ceph/ceph_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c
index ac8be54631fe..1c44e43fe89e 100644
--- a/fs/ceph/ceph_hash.c
+++ b/fs/ceph/ceph_hash.c
@@ -85,7 +85,7 @@ unsigned ceph_str_hash_linux(const char *str, unsigned length)
85 unsigned long hash = 0; 85 unsigned long hash = 0;
86 unsigned char c; 86 unsigned char c;
87 87
88 while (length-- > 0) { 88 while (length--) {
89 c = *str++; 89 c = *str++;
90 hash = (hash + (c << 4) + (c >> 4)) * 11; 90 hash = (hash + (c << 4) + (c >> 4)) * 11;
91 } 91 }