mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ceph: small cleanup in hash function
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
b9bfb93ce2
commit
cfea1cf42b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue