ext4: Remove an unnecessary check for NULL before iput()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 26 Nov 2014 01:01:37 +0000 (20:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Nov 2014 01:01:37 +0000 (20:01 -0500)
commitbfcba2d0352f7916e98a1cec54c1c2473da6f4d6
tree654f2cebb323496ec94f85c0934afe6aa1931613
parent31fc006b12f2c7e88fa5ee8f7f17ed0f85c9e4b8
ext4: Remove an unnecessary check for NULL before 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: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c