diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index 6ce542c11f987902dbc3e4f627e06de551ba5490..3d935c81789aaab13e33e52fab88b408fbccd6f2 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -306,7 +306,8 @@ static const struct super_operations omfs_sops = {
  */
 static int omfs_get_imap(struct super_block *sb)
 {
-	unsigned int bitmap_size, count, array_size;
+	unsigned int bitmap_size, array_size;
+	int count;
 	struct omfs_sb_info *sbi = OMFS_SB(sb);
 	struct buffer_head *bh;
 	unsigned long **ptr;