[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220822063049.5115-1-chuanjian@nfschina.com>
Date: Mon, 22 Aug 2022 14:30:49 +0800
From: Dong Chuanjian <chuanjian@...china.com>
To: mcgrof@...nel.org, keescook@...omium.org, yzaikin@...gle.com
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
kernel@...china.com, Dong Chuanjian <chuanjian@...china.com>
Subject: [PATCH] kernel/sysctl.c: remove unnecessary (void*) conversions
remove unnecessary void* type casting
Signed-off-by: Dong Chuanjian <chuanjian@...china.com>
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
Powered by blists - more mailing lists