Skip to content

Commit

Permalink
kernel/sysctl.c: remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
remove unnecessary void* type casting

Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
  • Loading branch information
Dong Chuanjian authored and Luis Chamberlain committed Sep 8, 2022
1 parent 9a52135 commit 8ebc412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8ebc412

Please sign in to comment.