]> git.baikalelectronics.ru Git - kernel.git/commit
jbd: Deletion of an unnecessary check before the function call "iput"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 16 Nov 2014 22:23:19 +0000 (23:23 +0100)
committerJan Kara <jack@suse.cz>
Tue, 18 Nov 2014 09:15:29 +0000 (10:15 +0100)
commit3bfb01353e1e9ac173503fe3091ce33da713f14a
treea7eef01dd35d99b5cff0bf5bb6ddb16d3293f2ca
parent52cef75de74421acd6762cc18f0108bf34f510e2
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>
fs/jbd/journal.c