Commit 655b5bb4 authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina

net/sunrpc/rpc_pipe.c: 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 ea3f0e6b
...@@ -204,7 +204,7 @@ rpc_pipe_release(struct inode *inode, struct file *filp) ...@@ -204,7 +204,7 @@ rpc_pipe_release(struct inode *inode, struct file *filp)
mutex_lock(&inode->i_mutex); mutex_lock(&inode->i_mutex);
if (rpci->ops == NULL) if (rpci->ops == NULL)
goto out; goto out;
msg = (struct rpc_pipe_msg *)filp->private_data; msg = filp->private_data;
if (msg != NULL) { if (msg != NULL) {
spin_lock(&inode->i_lock); spin_lock(&inode->i_lock);
msg->errno = -EAGAIN; msg->errno = -EAGAIN;
...@@ -322,7 +322,7 @@ rpc_pipe_ioctl_unlocked(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -322,7 +322,7 @@ rpc_pipe_ioctl_unlocked(struct file *filp, unsigned int cmd, unsigned long arg)
len = rpci->pipelen; len = rpci->pipelen;
if (filp->private_data) { if (filp->private_data) {
struct rpc_pipe_msg *msg; struct rpc_pipe_msg *msg;
msg = (struct rpc_pipe_msg *)filp->private_data; msg = filp->private_data;
len += msg->len - msg->copied; len += msg->len - msg->copied;
} }
return put_user(len, (int __user *)arg); return put_user(len, (int __user *)arg);
......
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