Skip to content

Commit

Permalink
ceph: small cleanup in hash function
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Nov 20, 2009
1 parent b9bfb93 commit cfea1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/ceph_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cfea1cf

Please sign in to comment.