Skip to content

Commit 8ebc412

Browse files
Dong Chuanjianmcgrof
authored andcommitted
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>
1 parent 9a52135 commit 8ebc412

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/sysctl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,9 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table,
10521052
return 0;
10531053
}
10541054

1055-
i = (unsigned long *) data;
1056-
min = (unsigned long *) table->extra1;
1057-
max = (unsigned long *) table->extra2;
1055+
i = data;
1056+
min = table->extra1;
1057+
max = table->extra2;
10581058
vleft = table->maxlen / sizeof(unsigned long);
10591059
left = *lenp;
10601060

0 commit comments

Comments
 (0)