From 14b060c163e6fdf63c311e684e347ab1978041ce Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 18 Nov 2009 16:50:55 -0800 Subject: [PATCH] --- yaml --- r: 188625 b: refs/heads/master c: cfea1cf42b614583c02727d5bffd5a2384e92bda h: refs/heads/master i: 188623: b977ebccef74a828db19026cba179756882ca91b v: v3 --- [refs] | 2 +- trunk/fs/ceph/ceph_hash.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 2f4f216bce90..9dc177898e77 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b9bfb93ce2b1ef668254f0b9e16fcc5246d65d8e +refs/heads/master: cfea1cf42b614583c02727d5bffd5a2384e92bda diff --git a/trunk/fs/ceph/ceph_hash.c b/trunk/fs/ceph/ceph_hash.c index ac8be54631fe..1c44e43fe89e 100644 --- a/trunk/fs/ceph/ceph_hash.c +++ b/trunk/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; }