Skip to content
Snippets Groups Projects
Commit 16a8ef27 authored by Markus Elfring's avatar Markus Elfring Committed by Steven Rostedt
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 8e2e095c
No related branches found
No related tags found
No related merge requests found
...@@ -552,8 +552,7 @@ error: ...@@ -552,8 +552,7 @@ error:
return ret; return ret;
fail_address_parse: fail_address_parse:
if (inode) iput(inode);
iput(inode);
pr_info("Failed to parse address or file.\n"); pr_info("Failed to parse address or file.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment