lkml.org 
[lkml]   [2009]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSun, 15 Nov 2009 09:11:26 +0100
FromIngo Molnar <>
SubjectRe: [PATCH] sysctl.c: Change a .proc_handler = proc_dointvec to &proc_dointvec,

* Am??rico Wang <xiyou.wangcong@gmail.com> wrote:

> On Sat, Nov 14, 2009 at 05:52:05PM -0800, Joe Perches wrote:
> >Seems to be a typo.
> >
>
> Well, in this case, proc_dointvec == &proc_dointvec,
> both of them are the same function pointer.
>
> But yes, &proc_dointvec looks more readable.
>
> >Signed-off-by: Joe Perches <joe@perches.com>
>
> Acked-by: WANG Cong <xiyou.wangcong@gmail.com>

(Cc:-ed Eric who is running the sysctl tree these days)

Almost everywhere in the kernel we use the shorter version, so all of
sysctl.c should eventually change to that variant.

Ingo


\
 
 \ /
  Last update: 2009-11-15 09:13    [from the cache]
©2003-2010