2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 08:44:14 +08:00

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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Dan Carpenter 2014-02-25 11:39:45 +03:00 committed by Jan Kara
parent f8cb556fdb
commit 4ddb987a47

View File

@ -1727,10 +1727,7 @@ allocated:
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;