]> git.baikalelectronics.ru Git - kernel.git/commit
ntfs: delete unnecessary checks before calling iput()
authorSF Markus Elfring <elfring@users.sourceforge.net>
Fri, 4 Sep 2015 22:43:32 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commitd6c9955f5315ae0207d15a6d3ce43f7f3e94712a
treea7a2ebd2b26344ee276caa04072ee9339bf2678e
parent6e91e45828582cae18c7563b00675ecc5081f1b3
ntfs: delete unnecessary checks before calling iput()

iput() 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>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ntfs/super.c