mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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:
parent
8f0f5c4fb9
commit
3839a8eedd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user