summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuoWen Li <guowen.li.linux@gmail.com>2011-06-01 13:18:47 +0200
committerSteven Rostedt <rostedt@goodmis.org>2011-06-07 04:34:25 +0200
commit0aff1c0cef13b34c17e81a502336fad738151c37 (patch)
tree3bf383429c3d948bd34ff71ae78d82bb2439fab5
parentperf: Fix comments in include/linux/perf_event.h (diff)
downloadlinux-0aff1c0cef13b34c17e81a502336fad738151c37.tar.xz
linux-0aff1c0cef13b34c17e81a502336fad738151c37.zip
ftrace: Fix possible undefined return code
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 <guowen.li.linux@gmail.com> Link: http://lkml.kernel.org/r/201106011918.47939.guowen.li.linux@gmail.com Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 1ee417fcbfa5..204b3eb4e690 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, ":");