提交 cfea1cf4 编写于 作者: S Sage Weil

ceph: small cleanup in hash function

Signed-off-by: NSage Weil <sage@newdream.net>
上级 b9bfb93c
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册