trace_syscalls: Remove unused syscall_name_to_nr()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 1 Dec 2009 08:24:06 +0000 (16:24 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 1 Dec 2009 16:33:31 +0000 (17:33 +0100)
After duplications are removed, syscall_name_to_nr() is unused.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B14D2A6.6060803@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_syscalls.c

index 1e85b6cc26aac0e26255d8a947bc4a5a0f8dd2bf..57501d90096abbba5ee3a87de54476a794ba176e 100644 (file)
@@ -51,22 +51,6 @@ static struct syscall_metadata *syscall_nr_to_meta(int nr)
        return syscalls_metadata[nr];
 }
 
-static int syscall_name_to_nr(const char *name)
-{
-       int i;
-
-       if (!syscalls_metadata)
-               return -1;
-
-       for (i = 0; i < NR_syscalls; i++) {
-               if (syscalls_metadata[i]) {
-                       if (!strcmp(syscalls_metadata[i]->name, name))
-                               return i;
-               }
-       }
-       return -1;
-}
-
 enum print_line_t
 print_syscall_enter(struct trace_iterator *iter, int flags)
 {