From: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: linux-kernel@vger.kernel.org,
Trond Myklebust <Trond.Myklebust@netapp.com>,
"J. Bruce Fields" <bfields@fieldses.org>,
Neil Brown <neilb@suse.de>,
"David S. Miller" <davem@davemloft.net>,
linux-nfs@vger.kernel.org, netdev@vger.kernel.org
Subject: [PATCH 33/36] net/sunrpc: Remove unnecessary casts of private_data
Date: Mon, 12 Jul 2010 13:50:25 -0700 [thread overview]
Message-ID: <08a3bf26a7a95d9e89662bd4cd00ddccadcd1636.1278967121.git.joe@perches.com> (raw)
In-Reply-To: <cover.1278967120.git.joe@perches.com>
Signed-off-by: Joe Perches <joe@perches.com>
---
net/sunrpc/rpc_pipe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 95ccbcf..1f7fc50 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);
--
1.7.1.337.g6068.dirty
next prev parent reply other threads:[~2010-07-12 20:51 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-12 20:49 [PATCH 00/36] " Joe Perches
2010-07-12 20:49 ` [PATCH 01/36] arch/cris: " Joe Perches
2010-07-30 17:24 ` Jesper Nilsson
2010-07-12 20:49 ` [PATCH 02/36] arch/ia64: " Joe Perches
2010-07-12 20:49 ` [PATCH 03/36] arch/powerpc: " Joe Perches
2010-07-12 20:49 ` [PATCH 04/36] arch/s390: " Joe Perches
2010-07-12 20:49 ` [PATCH 05/36] drivers/bluetooth: " Joe Perches
2010-07-12 21:40 ` Marcel Holtmann
2010-07-12 20:49 ` [PATCH 06/36] drivers/char: " Joe Perches
2010-07-12 20:49 ` [PATCH 07/36] drivers/gpu: " Joe Perches
2010-07-12 20:50 ` [PATCH 08/36] drivers/ieee1394: " Joe Perches
2010-07-13 8:25 ` Stefan Richter
2010-07-12 20:50 ` [PATCH 09/36] drivers/infiniband: " Joe Perches
2010-07-13 18:41 ` Ralph Campbell
2010-07-20 15:24 ` Jiri Kosina
2010-07-12 20:50 ` [PATCH 10/36] drivers/isdn: " Joe Perches
2010-07-13 4:13 ` David Miller
2010-07-12 20:50 ` [PATCH 11/36] drivers/media: " Joe Perches
2010-07-12 23:58 ` Jarod Wilson
2010-07-13 8:13 ` Laurent Pinchart
2010-07-12 20:50 ` [PATCH 12/36] drivers/misc: " Joe Perches
2010-07-12 20:50 ` [PATCH 13/36] drivers/net/caif: " Joe Perches
2010-07-13 4:13 ` David Miller
2010-07-12 20:50 ` [PATCH 14/36] drivers/net/wireless: " Joe Perches
2010-07-12 20:50 ` [PATCH 15/36] drivers/s390: " Joe Perches
2010-07-12 20:50 ` [PATCH 16/36] drivers/sbus: " Joe Perches
2010-07-13 4:18 ` David Miller
2010-07-13 5:04 ` Joe Perches
2010-07-12 20:50 ` [PATCH 17/36] drivers/scsi: " Joe Perches
2010-07-12 20:50 ` [PATCH 18/36] drivers/staging: " Joe Perches
2010-07-12 20:50 ` [PATCH 19/36] drivers/usb/gadget: " Joe Perches
2010-07-12 20:50 ` [PATCH 20/36] drivers/usb/misc: " Joe Perches
2010-07-12 20:50 ` [PATCH 21/36] drivers/usb: " Joe Perches
2010-07-12 20:50 ` [PATCH 22/36] fs/cifs: " Joe Perches
2010-07-15 2:41 ` Steve French
2010-07-12 20:50 ` [PATCH 23/36] fs/coda: " Joe Perches
2010-07-12 20:50 ` [PATCH 24/36] fs/ecryptfs: " Joe Perches
2010-07-12 20:50 ` [PATCH 25/36] fs/ext3: " Joe Perches
2010-07-12 20:50 ` [PATCH 26/36] fs/ext4: " Joe Perches
2010-07-23 12:56 ` Ted Ts'o
2010-07-12 20:50 ` [PATCH 27/36] fs/ocfs2: " Joe Perches
2010-07-12 22:37 ` Joel Becker
2010-07-20 15:20 ` Jiri Kosina
2010-07-12 20:50 ` [PATCH 28/36] fs: " Joe Perches
2010-07-12 20:50 ` [PATCH 29/36] kernel/trace: " Joe Perches
2010-07-22 18:58 ` Steven Rostedt
2010-07-12 20:50 ` [PATCH 30/36] kernel: " Joe Perches
2010-07-12 20:50 ` [PATCH 31/36] net/core: " Joe Perches
2010-07-13 4:14 ` David Miller
2010-07-12 20:50 ` [PATCH 32/36] net/irda: " Joe Perches
2010-07-13 4:14 ` David Miller
2010-07-12 20:50 ` Joe Perches [this message]
2010-07-12 20:50 ` [PATCH 34/36] sound/soc/blackfin: " Joe Perches
2010-07-13 10:45 ` Liam Girdwood
2010-07-13 11:38 ` Mark Brown
2010-07-12 20:50 ` [PATCH 35/36] sound/soc/davinci: " Joe Perches
2010-07-12 20:50 ` [PATCH 36/36] sound/core: " Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08a3bf26a7a95d9e89662bd4cd00ddccadcd1636.1278967121.git.joe@perches.com \
--to=joe@perches.com \
--cc=Trond.Myklebust@netapp.com \
--cc=bfields@fieldses.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neilb@suse.de \
--cc=netdev@vger.kernel.org \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®