]> Git Repo - J-linux.git/commitdiff
tracing: Fix "integer as NULL pointer" warning.
authorThiago Farina <[email protected]>
Sun, 24 Jan 2010 16:03:50 +0000 (11:03 -0500)
committerSteven Rostedt <[email protected]>
Wed, 5 May 2010 16:01:26 +0000 (12:01 -0400)
kernel/trace/trace_output.c:256:24: warning: Using plain integer as NULL pointer

Signed-off-by: Thiago Farina <[email protected]>
LKML-Reference: <1264349038[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
kernel/trace/trace_output.c

index 8e46b3323cdcdd91ad9833aa1eb8d0f1bf82f3af..2404c129a8c95cf006c83354ac26879ff40dc18c 100644 (file)
@@ -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;
This page took 0.051097 seconds and 4 git commands to generate.