summaryrefslogtreecommitdiff
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-09-04 18:52:53 -0700
committerJiri Kosina <jkosina@suse.cz>2010-09-23 13:40:14 +0200
commit655b5bb4a794267527a3059a22de54778a4548f3 (patch)
tree0ce1006e0275aa10c0c56302f2f0efd65e837de4 /net/sunrpc/rpc_pipe.c
parentea3f0e6bc5312e5f664221c5941a76bdf49c9970 (diff)
downloadlinux-3.10-655b5bb4a794267527a3059a22de54778a4548f3.tar.gz
linux-3.10-655b5bb4a794267527a3059a22de54778a4548f3.tar.bz2
linux-3.10-655b5bb4a794267527a3059a22de54778a4548f3.zip
net/sunrpc/rpc_pipe.c: 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 'net/sunrpc/rpc_pipe.c')
-rw-r--r--net/sunrpc/rpc_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 95ccbcf45d3..1f7fc502a50 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -204,7 +204,7 @@ rpc_pipe_release(struct inode *inode, struct file *filp)
mutex_lock(&inode->i_mutex);
if (rpci->ops == NULL)
goto out;
- msg = (struct rpc_pipe_msg *)filp->private_data;
+ msg = filp->private_data;
if (msg != NULL) {
spin_lock(&inode->i_lock);
msg->errno = -EAGAIN;
@@ -322,7 +322,7 @@ rpc_pipe_ioctl_unlocked(struct file *filp, unsigned int cmd, unsigned long arg)
len = rpci->pipelen;
if (filp->private_data) {
struct rpc_pipe_msg *msg;
- msg = (struct rpc_pipe_msg *)filp->private_data;
+ msg = filp->private_data;
len += msg->len - msg->copied;
}
return put_user(len, (int __user *)arg);