From: Sage Weil Date: Thu, 19 Nov 2009 00:50:55 +0000 (-0800) Subject: ceph: small cleanup in hash function X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cfea1cf42b614583c02727d5bffd5a2384e92bda;p=linux-beck.git ceph: small cleanup in hash function Signed-off-by: Sage Weil --- diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c index ac8be54631fe..1c44e43fe89e 100644 --- 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; }