tracing: Remove unneeded pointer casts
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 27 Aug 2009 03:23:29 +0000 (05:23 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 27 Aug 2009 03:23:29 +0000 (05:23 +0200)
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>
kernel/trace/trace_syscalls.c

index a928dd0045356ba8c82d4fdd100dcb3b40c9c5e4..e7c676e50a7fd07e67f63ab34604a28f9f39ac87 100644 (file)
@@ -324,7 +324,7 @@ int reg_event_syscall_exit(struct ftrace_event_call *call)
        int num;
        char *name;
 
-       name = (char *)call->data;
+       name = call->data;
        num = syscall_name_to_nr(name);
        if (num < 0 || num >= FTRACE_SYSCALL_MAX)
                return -ENOSYS;
@@ -347,7 +347,7 @@ void unreg_event_syscall_exit(struct ftrace_event_call *call)
        int num;
        char *name;
 
-       name = (char *)call->data;
+       name = call->data;
        num = syscall_name_to_nr(name);
        if (num < 0 || num >= FTRACE_SYSCALL_MAX)
                return;