diff options
author | Joe Perches <joe@perches.com> | 2010-09-04 21:52:45 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-09-23 07:41:47 -0400 |
commit | 27e49945ac7090b818e44cb9e8ae4b94fd711e41 (patch) | |
tree | 0d82e472324f3f50abe2fd82c206726d7386146f /drivers | |
parent | 655b5bb4a794267527a3059a22de54778a4548f3 (diff) |
drivers/s390: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/char/vmcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/char/vmcp.c b/drivers/s390/char/vmcp.c index 04e532eec032..19a14d9b80c1 100644 --- a/drivers/s390/char/vmcp.c +++ b/drivers/s390/char/vmcp.c | |||
@@ -47,7 +47,7 @@ static int vmcp_release(struct inode *inode, struct file *file) | |||
47 | { | 47 | { |
48 | struct vmcp_session *session; | 48 | struct vmcp_session *session; |
49 | 49 | ||
50 | session = (struct vmcp_session *)file->private_data; | 50 | session = file->private_data; |
51 | file->private_data = NULL; | 51 | file->private_data = NULL; |
52 | free_pages((unsigned long)session->response, get_order(session->bufsize)); | 52 | free_pages((unsigned long)session->response, get_order(session->bufsize)); |
53 | kfree(session); | 53 | kfree(session); |
@@ -94,7 +94,7 @@ vmcp_write(struct file *file, const char __user *buff, size_t count, | |||
94 | return -EFAULT; | 94 | return -EFAULT; |
95 | } | 95 | } |
96 | cmd[count] = '\0'; | 96 | cmd[count] = '\0'; |
97 | session = (struct vmcp_session *)file->private_data; | 97 | session = file->private_data; |
98 | if (mutex_lock_interruptible(&session->mutex)) { | 98 | if (mutex_lock_interruptible(&session->mutex)) { |
99 | kfree(cmd); | 99 | kfree(cmd); |
100 | return -ERESTARTSYS; | 100 | return -ERESTARTSYS; |
@@ -136,7 +136,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
136 | int __user *argp; | 136 | int __user *argp; |
137 | int temp; | 137 | int temp; |
138 | 138 | ||
139 | session = (struct vmcp_session *)file->private_data; | 139 | session = file->private_data; |
140 | if (is_compat_task()) | 140 | if (is_compat_task()) |
141 | argp = compat_ptr(arg); | 141 | argp = compat_ptr(arg); |
142 | else | 142 | else |