]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
UBIFS: amend key_hash return value
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 7 Mar 2009 18:53:41 +0000 (20:53 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 8 Mar 2009 11:29:41 +0000 (13:29 +0200)
... which should be uint32_t, not int.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/key.h

index efb3430a2581c4b723cafc6f846ed7b5841ed933..5fa27ea031babd737b1b2da019007e97046d9dea 100644 (file)
@@ -381,8 +381,8 @@ static inline ino_t key_inum_flash(const struct ubifs_info *c, const void *k)
  * @c: UBIFS file-system description object
  * @key: the key to get hash from
  */
-static inline int key_hash(const struct ubifs_info *c,
-                          const union ubifs_key *key)
+static inline uint32_t key_hash(const struct ubifs_info *c,
+                               const union ubifs_key *key)
 {
        return key->u32[1] & UBIFS_S_KEY_HASH_MASK;
 }
@@ -392,7 +392,7 @@ static inline int key_hash(const struct ubifs_info *c,
  * @c: UBIFS file-system description object
  * @k: the key to get hash from
  */
-static inline int key_hash_flash(const struct ubifs_info *c, const void *k)
+static inline uint32_t key_hash_flash(const struct ubifs_info *c, const void *k)
 {
        const union ubifs_key *key = k;