ceph: whitespace cleanup

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2009-12-01 14:12:07 -08:00
parent 34b43a56b9
commit 50b885b96c
5 changed files with 9 additions and 9 deletions

View File

@ -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 ceph_str_hash_linux(const char *str, unsigned length)
{ {
unsigned long hash = 0; unsigned long hash = 0;
unsigned char c; unsigned char c;
while (length--) { while (length--) {
c = *str++; c = *str++;
hash = (hash + (c << 4) + (c >> 4)) * 11; hash = (hash + (c << 4) + (c >> 4)) * 11;
} }
return hash; return hash;
} }

View File

@ -254,7 +254,7 @@ static int crush_bucket_choose(struct crush_bucket *in, int x, int r)
x, r); x, r);
default: default:
BUG_ON(1); BUG_ON(1);
return in->items[0]; return in->items[0];
} }
} }

View File

@ -1308,8 +1308,8 @@ static void put_osd_con(struct ceph_connection *con)
* authentication * authentication
*/ */
static int get_authorizer(struct ceph_connection *con, static int get_authorizer(struct ceph_connection *con,
void **buf, int *len, int *proto, void **buf, int *len, int *proto,
void **reply_buf, int *reply_len, int force_new) void **reply_buf, int *reply_len, int force_new)
{ {
struct ceph_osd *o = con->private; struct ceph_osd *o = con->private;
struct ceph_osd_client *osdc = o->o_osdc; struct ceph_osd_client *osdc = o->o_osdc;