aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-16 17:23:19 -0500
committerJan Kara <jack@suse.cz>2014-11-18 04:15:29 -0500
commit11cc9f56a18d371634d07b1be7e8772f6f7dcec5 (patch)
treea7eef01dd35d99b5cff0bf5bb6ddb16d3293f2ca /fs/jbd
parent75cbe701a4251fcd8b846d52ae42f88c9a8e5e93 (diff)
jbd: Deletion of an unnecessary check before the function call "iput"
The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/jbd')
-rw-r--r--fs/jbd/journal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index aab8549591e7..c46a79adb6ad 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -1373,8 +1373,7 @@ int journal_destroy(journal_t *journal)
1373 } 1373 }
1374 mutex_unlock(&journal->j_checkpoint_mutex); 1374 mutex_unlock(&journal->j_checkpoint_mutex);
1375 1375
1376 if (journal->j_inode) 1376 iput(journal->j_inode);
1377 iput(journal->j_inode);
1378 if (journal->j_revoke) 1377 if (journal->j_revoke)
1379 journal_destroy_revoke(journal); 1378 journal_destroy_revoke(journal);
1380 kfree(journal->j_wbuf); 1379 kfree(journal->j_wbuf);