lkml.org 
[lkml]   [2009]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 20/18] tracing: Remove unneeded pointer casts
    Frederic Weisbecker wrote:
    > 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>

    Acked-by: Masami Hiramatsu <mhiramat@redhat.com>

    > ---
    > kernel/trace/trace_syscalls.c | 4 ++--
    > 1 files changed, 2 insertions(+), 2 deletions(-)
    >
    > diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
    > index a928dd0..e7c676e 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)
    > 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;

    --
    Masami Hiramatsu

    Software Engineer
    Hitachi Computer Products (America), Inc.
    Software Solutions Division

    e-mail: mhiramat@redhat.com



    \
     
     \ /
      Last update: 2009-08-27 17:07    [W:0.021 / U:92.060 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site