mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
UBIFS: amend key_hash return value
... which should be uint32_t, not int. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
3edaae7c5b
commit
cb4f952db3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
* @c: UBIFS file-system description object
|
||||||
* @key: the key to get hash from
|
* @key: the key to get hash from
|
||||||
*/
|
*/
|
||||||
static inline int key_hash(const struct ubifs_info *c,
|
static inline uint32_t key_hash(const struct ubifs_info *c,
|
||||||
const union ubifs_key *key)
|
const union ubifs_key *key)
|
||||||
{
|
{
|
||||||
return key->u32[1] & UBIFS_S_KEY_HASH_MASK;
|
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
|
* @c: UBIFS file-system description object
|
||||||
* @k: the key to get hash from
|
* @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;
|
const union ubifs_key *key = k;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue