summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorGuoWen Li <guowen.li.linux@gmail.com>2011-06-01 19:18:47 +0800
committerSteven Rostedt <rostedt@goodmis.org>2011-06-06 22:34:25 -0400
commit0aff1c0cef13b34c17e81a502336fad738151c37 (patch)
tree3bf383429c3d948bd34ff71ae78d82bb2439fab5 /kernel
parentd7ebe75b065a7c2d58ffc12f9d2e00d5ea4e71eb (diff)
downloadlinux-0aff1c0cef13b34c17e81a502336fad738151c37.tar.bz2
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>
Diffstat (limited to 'kernel')
-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, ":");