]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/sysctl.c
sysctl: fix min/max handling in __do_proc_doulongvec_minmax()
[net-next-2.6.git] / kernel / sysctl.c
index ca38e8e3e907557f74faaad7ddb57d330bd43d2d..3a45c224770fb82fa4bd76f9c7d4f2f989ee5aa9 100644 (file)
@@ -1713,10 +1713,7 @@ static __init int sysctl_init(void)
 {
        sysctl_set_parent(NULL, root_table);
 #ifdef CONFIG_SYSCTL_SYSCALL_CHECK
-       {
-               int err;
-               err = sysctl_check_table(current->nsproxy, root_table);
-       }
+       sysctl_check_table(current->nsproxy, root_table);
 #endif
        return 0;
 }
@@ -2488,7 +2485,7 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int
                kbuf[left] = 0;
        }
 
-       for (; left && vleft--; i++, min++, max++, first=0) {
+       for (; left && vleft--; i++, first = 0) {
                unsigned long val;
 
                if (write) {