]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
lowmem: remove unecessary usage of proc_dointvec_minmax()
authorViktor Rosendahl <viktor.rosendahl@nokia.com>
Thu, 11 Sep 2008 16:20:34 +0000 (19:20 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 12 Sep 2008 18:11:35 +0000 (11:11 -0700)
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 <viktor.rosendahl@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
security/lowmem.c

index 113be7544704f02507ac34f3665b1f35b3a691b8..a965676a8e20acecb6d1ea8ededfb9d5499157c3 100644 (file)
@@ -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