From: Sage Weil Date: Sat, 7 Nov 2009 23:27:08 +0000 (-0800) Subject: hash: small cleanup X-Git-Tag: v0.18~128^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a1340e6813d0f8c6443fda7558523e2ab470214b;p=ceph.git hash: small cleanup --- diff --git a/src/include/ceph_hash.cc b/src/include/ceph_hash.cc index ac8be54631fe..1c44e43fe89e 100644 --- a/src/include/ceph_hash.cc +++ b/src/include/ceph_hash.cc @@ -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; }