Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11cc9f56 authored by Markus Elfring's avatar Markus Elfring Committed by Jan Kara
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 75cbe701
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1373,7 +1373,6 @@ int journal_destroy(journal_t *journal)
	}
	}
	mutex_unlock(&journal->j_checkpoint_mutex);
	mutex_unlock(&journal->j_checkpoint_mutex);


	if (journal->j_inode)
	iput(journal->j_inode);
	iput(journal->j_inode);
	if (journal->j_revoke)
	if (journal->j_revoke)
		journal_destroy_revoke(journal);
		journal_destroy_revoke(journal);