Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf3071f5 authored by Dave Jones's avatar Dave Jones Committed by Steven Rostedt
Browse files

tracing: Remove unnecessary WARN_ONCE's from tracing_buffers_splice_read

WARN shouldn't be used as a means of communicating failure to a userspace programmer.

Link: http://lkml.kernel.org/r/20120725153908.GA25203@redhat.com



Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 717a9ef7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4275,13 +4275,11 @@ tracing_buffers_splice_read(struct file *file, loff_t *ppos,
		return -ENOMEM;

	if (*ppos & (PAGE_SIZE - 1)) {
		WARN_ONCE(1, "Ftrace: previous read must page-align\n");
		ret = -EINVAL;
		goto out;
	}

	if (len & (PAGE_SIZE - 1)) {
		WARN_ONCE(1, "Ftrace: splice_read should page-align\n");
		if (len < PAGE_SIZE) {
			ret = -EINVAL;
			goto out;