]> git.baikalelectronics.ru Git - kernel.git/commit
zsmalloc: Delete an unnecessary check before the function call "iput"
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 28 Jul 2016 22:48:59 +0000 (15:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Jul 2016 23:07:41 +0000 (16:07 -0700)
commitac152fa0b126081dc877ba891ed1b6b33eb0c3c5
treee5944282a6c23cfa46059389130597f486df6cc2
parentf0e8b1ea30158b572d0c4055a11a1fea55c0c26e
zsmalloc: Delete an unnecessary check before the function call "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.

Link: http://lkml.kernel.org/r/559cf499-4a01-25f9-c87f-24d906626a57@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c