Skip to content

Commit

Permalink
tracing: initialize return value for __ftrace_set_clr_event
Browse files Browse the repository at this point in the history
Commit 8f31bfe
tracing/events: clean up for ftrace_set_clr_event()

Moved out the code for ftrace_set_clr_event into a helper funciton but
did not initialize the return value. As a result, we do not warn about
a typo in the echoing of events in set_event.

This patch restores the old warning:

 # echo foobar > set_event
-bash: echo: write error: Invalid argument

[ Impact: restore warning of invalid entries to set_event ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 8, 2009
1 parent c142b15 commit 29f9394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static int __ftrace_set_clr_event(const char *match, const char *sub,
const char *event, int set)
{
struct ftrace_event_call *call;
int ret;
int ret = -EINVAL;

mutex_lock(&event_mutex);
list_for_each_entry(call, &ftrace_events, list) {
Expand Down

0 comments on commit 29f9394

Please sign in to comment.