[PATCH] kernel/sysctl.c: remove unnecessary (void*) conversions
From: Dong Chuanjian
Date: Mon Aug 22 2022 - 02:31:01 EST
remove unnecessary void* type casting
Signed-off-by: Dong Chuanjian <chuanjian@xxxxxxxxxxxx>
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 205d605cacc5..324e6bbbeb34 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1052,9 +1052,9 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table,
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;
--
2.18.2