public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix compiler warning in ftrace.c
@ 2011-06-01 11:18 GuoWen Li
  2011-06-03  2:45 ` Steven Rostedt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: GuoWen Li @ 2011-06-01 11:18 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: linux-kernel

kernel/trace/ftrace.c: In function ‘ftrace_regex_write.clone.15’:
kernel/trace/ftrace.c:2743:6: warning: ‘ret’ may be used uninitialized in this 
function

Signed-off-by: GuoWen Li
---
 kernel/trace/ftrace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 1ee417f..204b3eb 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash 
*hash,
 {
        char *func, *command, *next = buff;
        struct ftrace_func_command *p;
-       int ret;
+       int ret = -EINVAL;
 
        func = strsep(&next, ":");

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-08 18:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 11:18 [PATCH] Fix compiler warning in ftrace.c GuoWen Li
2011-06-03  2:45 ` Steven Rostedt
2011-06-03  2:50 ` Steven Rostedt
2011-06-03  4:52   ` Guowen Li
2011-06-08 18:34 ` [tip:perf/urgent] ftrace: Fix possible undefined return code tip-bot for GuoWen Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox