aboutsummaryrefslogtreecommitdiff
path: root/fs/ceph/ceph_hash.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-01 14:12:07 -0800
committerSage Weil <sage@newdream.net>2009-12-03 14:59:44 -0800
commit50b885b96c903e420a1eac54dd27626244704a06 (patch)
tree35038a32cbb963c784685e8b73d6ecd1a7cde3c9 /fs/ceph/ceph_hash.c
parent34b43a56b9b103a7a820032177131532d9dbdbe8 (diff)
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c
index 1c44e43fe89..bd570015d14 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: