diff options
author | Sage Weil <sage@newdream.net> | 2009-12-01 23:12:07 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-03 23:59:44 +0100 |
commit | 50b885b96c903e420a1eac54dd27626244704a06 (patch) | |
tree | 35038a32cbb963c784685e8b73d6ecd1a7cde3c9 /fs/ceph/ceph_hash.c | |
parent | ceph: plug leak of request_mutex (diff) | |
download | linux-50b885b96c903e420a1eac54dd27626244704a06.tar.xz linux-50b885b96c903e420a1eac54dd27626244704a06.zip |
ceph: whitespace cleanup
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ceph_hash.c')
-rw-r--r-- | fs/ceph/ceph_hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c index 1c44e43fe89e..bd570015d147 100644 --- a/fs/ceph/ceph_hash.c +++ b/fs/ceph/ceph_hash.c @@ -82,14 +82,14 @@ unsigned ceph_str_hash_rjenkins(const char *str, unsigned length) */ unsigned ceph_str_hash_linux(const char *str, unsigned length) { - unsigned long hash = 0; + unsigned long hash = 0; unsigned char c; - while (length--) { + while (length--) { c = *str++; hash = (hash + (c << 4) + (c >> 4)) * 11; } - return hash; + return hash; } @@ -105,7 +105,7 @@ unsigned ceph_str_hash(int type, const char *s, unsigned len) } } -const char *ceph_str_hash_name(int type) +const char *ceph_str_hash_name(int type) { switch (type) { case CEPH_STR_HASH_LINUX: |