projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9bfb93
)
ceph: small cleanup in hash function
author
Sage Weil
<sage@newdream.net>
Thu, 19 Nov 2009 00:50:55 +0000
(16:50 -0800)
committer
Sage Weil
<sage@newdream.net>
Fri, 20 Nov 2009 22:24:26 +0000
(14:24 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/ceph_hash.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/ceph_hash.c
b/fs/ceph/ceph_hash.c
index ac8be54631fe559e5dc5b90ddee7bd29f65f21a8..1c44e43fe89e963528720807593d99f4fb170dab 100644
(file)
--- 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;
}