aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_syscalls.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-26 23:23:29 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-26 23:23:29 -0400
commitf8468f3695209735c1595342f6bd95f7bdab66e1 (patch)
tree7158af2df47c0da942635ec2a153cfeb9ce147ef /kernel/trace/trace_syscalls.c
parentaeaeae1187d7520f1c5559623f0a149da6a1c96e (diff)
tracing: Remove unneeded pointer casts
Cleaup uneeded casts from void * to char * in syscalls tracing file. Reported-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com Cc: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r--kernel/trace/trace_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index a928dd004535..e7c676e50a7f 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -324,7 +324,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call)
324 int num; 324 int num;
325 char *name; 325 char *name;
326 326
327 name = (char *)call->data; 327 name = call->data;
328 num = syscall_name_to_nr(name); 328 num = syscall_name_to_nr(name);
329 if (num < 0 || num >= FTRACE_SYSCALL_MAX) 329 if (num < 0 || num >= FTRACE_SYSCALL_MAX)
330 return -ENOSYS; 330 return -ENOSYS;
@@ -347,7 +347,7 @@ void unreg_event_syscall_exit(struct ftrace_event_call *call)
347 int num; 347 int num;
348 char *name; 348 char *name;
349 349
350 name = (char *)call->data; 350 name = call->data;
351 num = syscall_name_to_nr(name); 351 num = syscall_name_to_nr(name);
352 if (num < 0 || num >= FTRACE_SYSCALL_MAX) 352 if (num < 0 || num >= FTRACE_SYSCALL_MAX)
353 return; 353 return;