OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e26ca7
)
tracing: Fix "integer as NULL pointer" warning.
author
Thiago Farina
<tfransosi@gmail.com>
Sun, 24 Jan 2010 16:03:50 +0000
(11:03 -0500)
committer
Steven Rostedt
<rostedt@goodmis.org>
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 <tfransosi@gmail.com>
LKML-Reference: <
1264349038
-1766-3-git-send-email-tfransosi@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_output.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_output.c
b/kernel/trace/trace_output.c
index
8e46b33
..
2404c12
100644
(file)
--- a/
kernel/trace/trace_output.c
+++ b/
kernel/trace/trace_output.c
@@
-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;