Commit 0aff1c0c authored by GuoWen Li's avatar GuoWen Li Committed by Steven Rostedt

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: default avatarGuoWen Li <guowen.li.linux@gmail.com>
Link: http://lkml.kernel.org/r/201106011918.47939.guowen.li.linux@gmail.comSigned-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent d7ebe75b
...@@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash *hash, ...@@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash *hash,
{ {
char *func, *command, *next = buff; char *func, *command, *next = buff;
struct ftrace_func_command *p; struct ftrace_func_command *p;
int ret; int ret = -EINVAL;
func = strsep(&next, ":"); func = strsep(&next, ":");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment