3.16.60-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Markus Elfring <[email protected]>

commit 16a8ef2751801346f1f76a18685b2beb63cd170f upstream.

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/[email protected]

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>
---
 kernel/trace/trace_uprobe.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -552,8 +552,7 @@ error:
        return ret;
 
 fail_address_parse:
-       if (inode)
-               iput(inode);
+       iput(inode);
 
        pr_info("Failed to parse address or file.\n");
 

Reply via email to