Commit 27e49945 authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina

drivers/s390: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 655b5bb4
...@@ -47,7 +47,7 @@ static int vmcp_release(struct inode *inode, struct file *file) ...@@ -47,7 +47,7 @@ static int vmcp_release(struct inode *inode, struct file *file)
{ {
struct vmcp_session *session; struct vmcp_session *session;
session = (struct vmcp_session *)file->private_data; session = file->private_data;
file->private_data = NULL; file->private_data = NULL;
free_pages((unsigned long)session->response, get_order(session->bufsize)); free_pages((unsigned long)session->response, get_order(session->bufsize));
kfree(session); kfree(session);
...@@ -94,7 +94,7 @@ vmcp_write(struct file *file, const char __user *buff, size_t count, ...@@ -94,7 +94,7 @@ vmcp_write(struct file *file, const char __user *buff, size_t count,
return -EFAULT; return -EFAULT;
} }
cmd[count] = '\0'; cmd[count] = '\0';
session = (struct vmcp_session *)file->private_data; session = file->private_data;
if (mutex_lock_interruptible(&session->mutex)) { if (mutex_lock_interruptible(&session->mutex)) {
kfree(cmd); kfree(cmd);
return -ERESTARTSYS; return -ERESTARTSYS;
...@@ -136,7 +136,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -136,7 +136,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
int __user *argp; int __user *argp;
int temp; int temp;
session = (struct vmcp_session *)file->private_data; session = file->private_data;
if (is_compat_task()) if (is_compat_task())
argp = compat_ptr(arg); argp = compat_ptr(arg);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment