kernel/sysctl.c: remove unnecessary (void*) conversions
authorDong Chuanjian <chuanjian@nfschina.com>
Mon, 22 Aug 2022 06:30:49 +0000 (14:30 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 8 Sep 2022 23:46:07 +0000 (16:46 -0700)
remove unnecessary void* type casting

Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/sysctl.c

index 205d605..324e6bb 100644 (file)
@@ -1052,9 +1052,9 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table,
                return 0;
        }
 
                return 0;
        }
 
-       i = (unsigned long *) data;
-       min = (unsigned long *) table->extra1;
-       max = (unsigned long *) table->extra2;
+       i = data;
+       min = table->extra1;
+       max = table->extra2;
        vleft = table->maxlen / sizeof(unsigned long);
        left = *lenp;
 
        vleft = table->maxlen / sizeof(unsigned long);
        left = *lenp;