diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-02-25 03:39:45 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2014-03-03 05:31:01 -0500 |
commit | 4ddb987a478aa303c38cfc543d309247ccbfa395 (patch) | |
tree | 2515352ee90427a9d1cf01bbc8a3ea2d8603ce61 /fs/ext3 | |
parent | f8cb556fdbc36855ef884061a1beec6124314c89 (diff) |
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>
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/balloc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c index 22548f56197b..158b5d4ce067 100644 --- a/fs/ext3/balloc.c +++ b/fs/ext3/balloc.c | |||
@@ -1727,10 +1727,7 @@ allocated: | |||
1727 | percpu_counter_sub(&sbi->s_freeblocks_counter, num); | 1727 | percpu_counter_sub(&sbi->s_freeblocks_counter, num); |
1728 | 1728 | ||
1729 | BUFFER_TRACE(gdp_bh, "journal_dirty_metadata for group descriptor"); | 1729 | BUFFER_TRACE(gdp_bh, "journal_dirty_metadata for group descriptor"); |
1730 | err = ext3_journal_dirty_metadata(handle, gdp_bh); | 1730 | fatal = ext3_journal_dirty_metadata(handle, gdp_bh); |
1731 | if (!fatal) | ||
1732 | fatal = err; | ||
1733 | |||
1734 | if (fatal) | 1731 | if (fatal) |
1735 | goto out; | 1732 | goto out; |
1736 | 1733 | ||