diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-11-23 05:03:28 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-23 05:04:07 -0500 |
commit | 457dc928f586f3f4b930206965e6db270034e97e (patch) | |
tree | db1ff1d43058451cc42f6499f495e68d1a37e335 /kernel/trace/ftrace.c | |
parent | 98e4833ba3c314c99dc364012fba6ac894230ad0 (diff) |
tracing, function tracer: Clean up strstrip() usage
Clean up strstrip() usage - which also addresses this build warning:
kernel/trace/ftrace.c: In function 'ftrace_pid_write':
kernel/trace/ftrace.c:3004: warning: ignoring return value of 'strstrip', declared with attribute warn_unused_result
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 7f9b51e8184b..1dc101d09765 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2985,7 +2985,7 @@ static ssize_t | |||
2985 | ftrace_pid_write(struct file *filp, const char __user *ubuf, | 2985 | ftrace_pid_write(struct file *filp, const char __user *ubuf, |
2986 | size_t cnt, loff_t *ppos) | 2986 | size_t cnt, loff_t *ppos) |
2987 | { | 2987 | { |
2988 | char buf[64]; | 2988 | char buf[64], *tmp; |
2989 | long val; | 2989 | long val; |
2990 | int ret; | 2990 | int ret; |
2991 | 2991 | ||
@@ -3001,11 +3001,11 @@ ftrace_pid_write(struct file *filp, const char __user *ubuf, | |||
3001 | * Allow "echo > set_ftrace_pid" or "echo -n '' > set_ftrace_pid" | 3001 | * Allow "echo > set_ftrace_pid" or "echo -n '' > set_ftrace_pid" |
3002 | * to clean the filter quietly. | 3002 | * to clean the filter quietly. |
3003 | */ | 3003 | */ |
3004 | strstrip(buf); | 3004 | tmp = strstrip(buf); |
3005 | if (strlen(buf) == 0) | 3005 | if (strlen(tmp) == 0) |
3006 | return 1; | 3006 | return 1; |
3007 | 3007 | ||
3008 | ret = strict_strtol(buf, 10, &val); | 3008 | ret = strict_strtol(tmp, 10, &val); |
3009 | if (ret < 0) | 3009 | if (ret < 0) |
3010 | return ret; | 3010 | return ret; |
3011 | 3011 | ||
@@ -3391,4 +3391,3 @@ void ftrace_graph_stop(void) | |||
3391 | ftrace_stop(); | 3391 | ftrace_stop(); |
3392 | } | 3392 | } |
3393 | #endif | 3393 | #endif |
3394 | |||