summaryrefslogtreecommitdiffstats
path: root/fs/jbd2
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2014-11-26 02:02:37 +0100
committerTheodore Ts'o <tytso@mit.edu>2014-11-26 02:02:37 +0100
commitd9f39d1e44c43fba26becc4145fabf9d767ff1cd (patch)
tree8a611ed827f145256730d6b7764aaecd4263f821 /fs/jbd2
parentext4: Remove an unnecessary check for NULL before iput() (diff)
downloadlinux-d9f39d1e44c43fba26becc4145fabf9d767ff1cd.tar.xz
linux-d9f39d1e44c43fba26becc4145fabf9d767ff1cd.zip
jbd2: remove unnecessary NULL check before iput()
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
-rw-r--r--fs/jbd2/journal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index e4dc74713a43..56dde1e85c24 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -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)