Commit 4ddb987a authored by Dan Carpenter's avatar Dan Carpenter Committed by Jan Kara

ext3: remove an unneeded check in ext3_new_blocks()

We know "fatal" is zero here.  The code can be simplified a bit by
assigning directly.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent f8cb556f
......@@ -1727,10 +1727,7 @@ ext3_fsblk_t ext3_new_blocks(handle_t *handle, struct inode *inode,
percpu_counter_sub(&sbi->s_freeblocks_counter, num);
BUFFER_TRACE(gdp_bh, "journal_dirty_metadata for group descriptor");
err = ext3_journal_dirty_metadata(handle, gdp_bh);
if (!fatal)
fatal = err;
fatal = ext3_journal_dirty_metadata(handle, gdp_bh);
if (fatal)
goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment