Skip to content

Commit

Permalink
jbd2: remove unnecessary NULL check before iput()
Browse files Browse the repository at this point in the history
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
tytso committed Nov 26, 2014
1 parent bfcba2d commit d9f39d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1714,8 +1714,7 @@ int jbd2_journal_destroy(journal_t *journal)

if (journal->j_proc_entry)
jbd2_stats_proc_exit(journal);
if (journal->j_inode)
iput(journal->j_inode);
iput(journal->j_inode);
if (journal->j_revoke)
jbd2_journal_destroy_revoke(journal);
if (journal->j_chksum_driver)
Expand Down

0 comments on commit d9f39d1

Please sign in to comment.