From 336092c0f9feef32928f617bd70f157daea04f40 Mon Sep 17 00:00:00 2001 From: Viktor Rosendahl Date: Thu, 11 Sep 2008 19:20:34 +0300 Subject: [PATCH] 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 --- security/lowmem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.41.1