Skip to content

Commit d9a4549

Browse files
zhangyi089tytso
authored andcommitted
jbd2: drop useless error tag in jbd2_journal_wipe()
no_recovery is redundant, just drop it. Signed-off-by: Zhang Yi <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 49887e4 commit d9a4549

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/jbd2/journal.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,12 +2500,12 @@ int jbd2_journal_flush(journal_t *journal, unsigned int flags)
25002500

25012501
int jbd2_journal_wipe(journal_t *journal, int write)
25022502
{
2503-
int err = 0;
2503+
int err;
25042504

25052505
J_ASSERT (!(journal->j_flags & JBD2_LOADED));
25062506

25072507
if (!journal->j_tail)
2508-
goto no_recovery;
2508+
return 0;
25092509

25102510
printk(KERN_WARNING "JBD2: %s recovery information on journal\n",
25112511
write ? "Clearing" : "Ignoring");
@@ -2518,7 +2518,6 @@ int jbd2_journal_wipe(journal_t *journal, int write)
25182518
mutex_unlock(&journal->j_checkpoint_mutex);
25192519
}
25202520

2521-
no_recovery:
25222521
return err;
25232522
}
25242523

0 commit comments

Comments
 (0)