From: Viktor Rosendahl Date: Thu, 11 Sep 2008 16:20:34 +0000 (+0300) Subject: lowmem: remove unecessary usage of proc_dointvec_minmax() X-Git-Tag: v2.6.27-omap1~205 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=336092c0f9feef32928f617bd70f157daea04f40;p=linux-2.6-omap-h63xx.git lowmem: remove unecessary usage of proc_dointvec_minmax() As far as I can understand, using proc_dointvec_minmax() instead of proc_dointvec only makes sense if you supply the min and/or max values in the extra1 and extra2 fields of the struct. Signed-off-by: Viktor Rosendahl Signed-off-by: Tony Lindgren --- diff --git a/security/lowmem.c b/security/lowmem.c index 113be754470..a965676a8e2 100644 --- a/security/lowmem.c +++ b/security/lowmem.c @@ -69,7 +69,7 @@ static ctl_table lowmem_table[] = { .maxlen = sizeof(unsigned int), .mode = 0644, .child = NULL, - .proc_handler = &proc_dointvec_minmax, + .proc_handler = &proc_dointvec, .strategy = &sysctl_intvec, }, { .ctl_name = VM_LOWMEM_ALLOWED_UIDS, @@ -89,7 +89,7 @@ static ctl_table lowmem_table[] = { .maxlen = sizeof(unsigned long), .mode = 0444, .child = NULL, - .proc_handler = &proc_dointvec_minmax, + .proc_handler = &proc_dointvec, .strategy = &sysctl_intvec, }, { .ctl_name = VM_LOWMEM_USED_PAGES, @@ -98,7 +98,7 @@ static ctl_table lowmem_table[] = { .maxlen = sizeof(long), .mode = 0444, .child = NULL, - .proc_handler = &proc_dointvec_minmax, + .proc_handler = &proc_dointvec, .strategy = &sysctl_intvec, }, { .ctl_name = 0