lkml.org 
[lkml]   [2009]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/7] add syscall tracepoints
> +int syscall_name_to_nr(char *name)
> +{
> + int i;
> +
> + if (!syscalls_metadata)
> + return -1;
> +
> + for (i = 0; i < FTRACE_SYSCALL_MAX; i++) {
> + if (syscalls_metadata[i]) {
> + if (!strcmp((syscalls_metadata[i])->name, name))

Remove a pair of parenthesis looks cleaner:

if (!strcmp(syscalls_metadata[i]->name, name))

> + return i;
> + }
> + }
> + return -1;
> +}
> +
> void arch_init_ftrace_syscalls(void)
> {
> int i;




\
 
 \ /
  Last update: 2009-06-19 10:23    [W:0.190 / U:0.696 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site