Skip to content

Commit

Permalink
ring-buffer: remove useless warn on check
Browse files Browse the repository at this point in the history
A check if "write > BUF_PAGE_SIZE" is done right after a

	if (write > BUF_PAGE_SIZE)
		return ...;

Thus the check is actually testing the compiler and not the
kernel. This is useless, remove it.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jun 17, 2009
1 parent 22f470f commit c6a9d7b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,9 +1334,6 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,

/* We reserved something on the buffer */

if (RB_WARN_ON(cpu_buffer, write > BUF_PAGE_SIZE))
return NULL;

event = __rb_page_index(tail_page, tail);
rb_update_event(event, type, length);

Expand Down

0 comments on commit c6a9d7b

Please sign in to comment.