]> 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)
commite1f11ed472029a51c486b121148adf07f3979321
treec4aefdf905357019c9d100d1af7bea7d64d8e36e
parentff743870c6dff5a77e3f1380410f0ae6d388b0a8
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