diff options
author | Ćukasz Majewski <l.majewski@samsung.com> | 2012-12-05 08:06:39 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-07 08:47:53 -0700 |
commit | d429ca0d831024b1b1845db8a5e950b44e10db04 (patch) | |
tree | ef8e13e8b33e30cd9c903ea134b1f5620cab743f /fs/ext4/ext4_journal.c | |
parent | a1f41f1a55230dcd2e195f193809901fc4a082cf (diff) | |
download | u-boot-imx-d429ca0d831024b1b1845db8a5e950b44e10db04.zip u-boot-imx-d429ca0d831024b1b1845db8a5e950b44e10db04.tar.gz u-boot-imx-d429ca0d831024b1b1845db8a5e950b44e10db04.tar.bz2 |
fs:ext4:fix: Code refactoring to suppress compiler warnings
Several fixes to suppress compiler's (eldk-5.[12].x gcc 4.6)
warning [-Wunused-but-set-variable]
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'fs/ext4/ext4_journal.c')
-rw-r--r-- | fs/ext4/ext4_journal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/ext4_journal.c b/fs/ext4/ext4_journal.c index 8a252d6..9f01708 100644 --- a/fs/ext4/ext4_journal.c +++ b/fs/ext4/ext4_journal.c @@ -410,7 +410,7 @@ int ext4fs_check_journal_state(int recovery_flag) int transaction_state = TRANSACTION_COMPLETE; int prev_desc_logical_no = 0; int curr_desc_logical_no = 0; - int ofs, flags, block; + int ofs, flags; struct ext2_inode inode_journal; struct journal_superblock_t *jsb = NULL; struct journal_header_t *jdb = NULL; @@ -453,7 +453,6 @@ int ext4fs_check_journal_state(int recovery_flag) i = be32_to_cpu(jsb->s_first); while (1) { - block = be32_to_cpu(jsb->s_first); blknr = read_allocated_block(&inode_journal, i); memset(temp_buff1, '\0', fs->blksz); ext4fs_devread(blknr * fs->sect_perblk, |