aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/ceph_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c
index ac8be54631f..1c44e43fe89 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;
}