projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a52135
)
kernel/sysctl.c: remove unnecessary (void*) conversions
author
Dong Chuanjian
<chuanjian@nfschina.com>
Mon, 22 Aug 2022 06:30:49 +0000
(14:30 +0800)
committer
Luis 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
patch
|
blob
|
history
diff --git
a/kernel/sysctl.c
b/kernel/sysctl.c
index
205d605
..
324e6bb
100644
(file)
--- 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;
}
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;