Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfea1cf4 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: small cleanup in hash function



Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent b9bfb93c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -85,7 +85,7 @@ 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-- > 0) {
        while (length--) {
		c = *str++;
		c = *str++;
		hash = (hash + (c << 4) + (c >> 4)) * 11;
		hash = (hash + (c << 4) + (c >> 4)) * 11;
	}
	}