mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 17:14:40 +08:00
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>
This commit is contained in:
parent
aeaeae1187
commit
f8468f3695
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user