]> git.karo-electronics.de Git - linux-beck.git/commitdiff
jbd2: remove unnecessary NULL check before iput()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 26 Nov 2014 01:02:37 +0000 (20:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Nov 2014 01:02:37 +0000 (20:02 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c

index e4dc74713a4328eda4738823f51e0c6070937e0a..56dde1e85c249820274b7f4e4f589c445d3e21d2 100644 (file)
@@ -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)