Commit 668eb65f authored by Thiago Farina's avatar Thiago Farina Committed by Steven Rostedt

tracing: Fix "integer as NULL pointer" warning.

kernel/trace/trace_output.c:256:24: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarThiago Farina <tfransosi@gmail.com>
LKML-Reference: <1264349038-1766-3-git-send-email-tfransosi@gmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 2e26ca71
...@@ -253,7 +253,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len) ...@@ -253,7 +253,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len)
void *ret; void *ret;
if (s->full) if (s->full)
return 0; return NULL;
if (len > ((PAGE_SIZE - 1) - s->len)) { if (len > ((PAGE_SIZE - 1) - s->len)) {
s->full = 1; s->full = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment