summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorDong Chuanjian <chuanjian@nfschina.com>2022-08-22 08:30:49 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2022-09-09 01:46:07 +0200
commit8ebc4123c1445ef11a9989d9bc676691a1d43302 (patch)
tree1f7d74698a55e1bf1ffe0ac5a46903cd68fcf1e0 /kernel/sysctl.c
parentproc: remove initialization assignment (diff)
downloadlinux-8ebc4123c1445ef11a9989d9bc676691a1d43302.tar.xz
linux-8ebc4123c1445ef11a9989d9bc676691a1d43302.zip
kernel/sysctl.c: remove unnecessary (void*) conversions
remove unnecessary void* type casting Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c6
1 files changed, 3 insertions, 3 deletions
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;