Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[linux-3.10.git] / net / sunrpc / rpc_pipe.c
index 28bcd52..52f2524 100644 (file)
@@ -203,7 +203,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;
@@ -325,7 +325,7 @@ rpc_pipe_ioctl(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;
                }
                spin_unlock(&inode->i_lock);