]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Deletion of an unnecessary check before iput()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 16 Nov 2014 13:46:28 +0000 (14:46 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Nov 2014 21:28:45 +0000 (16:28 -0500)
commite72596043fc0a3da31cc20744638d0dad764aa3c
treec4aefdf905357019c9d100d1af7bea7d64d8e36e
parent2a8d00a6d235b78f4591c45e1e7aad428ca13eb4
tracing: Deletion of an unnecessary check 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.

Link: http://lkml.kernel.org/r/5468F875.7080907@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_uprobe.c