

Don't typecast when assigning to or from a void* - it defeats typechecking.

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/kernel/cpuset.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN kernel/cpuset.c~cpusets-remove-casts kernel/cpuset.c
--- 25/kernel/cpuset.c~cpusets-remove-casts	2005-02-02 15:56:43.756135680 -0800
+++ 25-akpm/kernel/cpuset.c	2005-02-02 15:56:43.760135072 -0800
@@ -1113,7 +1113,7 @@ static int cpuset_tasks_open(struct inod
 	ctr->bufsz = pid_array_to_buf(ctr->buf, ctr->bufsz, pidarray, npids);
 
 	kfree(pidarray);
-	file->private_data = (void *)ctr;
+	file->private_data = ctr;
 	return 0;
 
 err2:
@@ -1127,7 +1127,7 @@ err0:
 static ssize_t cpuset_tasks_read(struct file *file, char __user *buf,
 						size_t nbytes, loff_t *ppos)
 {
-	struct ctr_struct *ctr = (struct ctr_struct *)file->private_data;
+	struct ctr_struct *ctr = file->private_data;
 
 	if (*ppos + nbytes > ctr->bufsz)
 		nbytes = ctr->bufsz - *ppos;
@@ -1142,7 +1142,7 @@ static int cpuset_tasks_release(struct i
 	struct ctr_struct *ctr;
 
 	if (file->f_mode & FMODE_READ) {
-		ctr = (struct ctr_struct *)file->private_data;
+		ctr = file->private_data;
 		kfree(ctr->buf);
 		kfree(ctr);
 	}
_
