tracing: Remove redundant IS_ERR() check in trace_pipe_open()

in trace_pipe_open() already check the IS_ERR(iter) and return early on
error,so iter after will be valid and it is safe to return 0 at end.

Link: https://patch.msgid.link/20260420101236.223919-1-yashsuthar983@gmail.com
Signed-off-by: Yash Suthar <yashsuthar983@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
Yash Suthar
2026-04-20 15:42:36 +05:30
committed by Steven Rostedt
parent 8f0f5c4fb9
commit 3839a8eedd

View File

@@ -602,7 +602,7 @@ static int trace_pipe_open(struct inode *inode, struct file *filp)
filp->private_data = iter;
return IS_ERR(iter) ? PTR_ERR(iter) : 0;
return 0;
}
static int trace_pipe_release(struct inode *inode, struct file *filp)