mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
ext4: remove dead code in updating backup sb
ext4_update_backup_sb checks for err having some value after unlocking buffer. But err has not been updated till that point in any code which will lead execution of the code in question. Signed-off-by: Tanmay Bhushan <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
This commit is contained in:
committed by
Theodore Ts'o
parent
240930fb7e
commit
08abd0466e
@@ -155,9 +155,6 @@ static int ext4_update_backup_sb(struct super_block *sb,
|
||||
set_buffer_uptodate(bh);
|
||||
unlock_buffer(bh);
|
||||
|
||||
if (err)
|
||||
goto out_bh;
|
||||
|
||||
if (handle) {
|
||||
err = ext4_handle_dirty_metadata(handle, NULL, bh);
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user