diff options
author | Sage Weil <sage@newdream.net> | 2009-11-18 16:50:55 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-20 14:24:26 -0800 |
commit | cfea1cf42b614583c02727d5bffd5a2384e92bda (patch) | |
tree | 74b65b8a1c507c5751150553a28def40cd51b09b /fs/ceph/ceph_hash.c | |
parent | b9bfb93ce2b1ef668254f0b9e16fcc5246d65d8e (diff) | |
download | kernel_samsung_tuna-cfea1cf42b614583c02727d5bffd5a2384e92bda.zip kernel_samsung_tuna-cfea1cf42b614583c02727d5bffd5a2384e92bda.tar.gz kernel_samsung_tuna-cfea1cf42b614583c02727d5bffd5a2384e92bda.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c index ac8be54..1c44e43 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) unsigned long hash = 0; unsigned char c; - while (length-- > 0) { + while (length--) { c = *str++; hash = (hash + (c << 4) + (c >> 4)) * 11; } |