diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-06-11 09:49:15 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-06-16 21:19:26 -0400 |
commit | c6a9d7b55e2df63de012a9a285bf2a0bee8e4d59 (patch) | |
tree | f4f275eeba79572e9660da6c0d865d7f2d51075c /kernel | |
parent | 22f470f8daea64bc03be1fe30c8c5df382295386 (diff) |
ring-buffer: remove useless warn on check
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ring_buffer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 6b17a11e42a2..6cf340e1a4a3 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c | |||
@@ -1334,9 +1334,6 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer, | |||
1334 | 1334 | ||
1335 | /* We reserved something on the buffer */ | 1335 | /* We reserved something on the buffer */ |
1336 | 1336 | ||
1337 | if (RB_WARN_ON(cpu_buffer, write > BUF_PAGE_SIZE)) | ||
1338 | return NULL; | ||
1339 | |||
1340 | event = __rb_page_index(tail_page, tail); | 1337 | event = __rb_page_index(tail_page, tail); |
1341 | rb_update_event(event, type, length); | 1338 | rb_update_event(event, type, length); |
1342 | 1339 | ||