Skip to content

Commit

Permalink
tracing: Fix "integer as NULL pointer" warning.
Browse files Browse the repository at this point in the history
kernel/trace/trace_output.c:256:24: warning: Using plain integer as NULL pointer

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
LKML-Reference: <1264349038-1766-3-git-send-email-tfransosi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Thiago Farina authored and Steven Rostedt committed May 5, 2010
1 parent 2e26ca7 commit 668eb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len)
void *ret;

if (s->full)
return 0;
return NULL;

if (len > ((PAGE_SIZE - 1) - s->len)) {
s->full = 1;
Expand Down

0 comments on commit 668eb65

Please sign in to comment.