Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755658Ab0GLUxK (ORCPT ); Mon, 12 Jul 2010 16:53:10 -0400 Received: from mail.perches.com ([173.55.12.10]:1783 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755006Ab0GLUvB (ORCPT ); Mon, 12 Jul 2010 16:51:01 -0400 From: Joe Perches To: Jiri Kosina Cc: linux-kernel@vger.kernel.org, Jan Harkes , coda@cs.cmu.edu, codalist@TELEMANN.coda.cs.cmu.edu Subject: [PATCH 23/36] fs/coda: Remove unnecessary casts of private_data Date: Mon, 12 Jul 2010 13:50:15 -0700 Message-Id: X-Mailer: git-send-email 1.7.1.337.g6068.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2023 Lines: 53 Signed-off-by: Joe Perches --- fs/coda/psdev.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index 66b9cf7..2c4fd44 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c @@ -63,7 +63,7 @@ static struct class *coda_psdev_class; static unsigned int coda_psdev_poll(struct file *file, poll_table * wait) { - struct venus_comm *vcp = (struct venus_comm *) file->private_data; + struct venus_comm *vcp = file->private_data; unsigned int mask = POLLOUT | POLLWRNORM; poll_wait(file, &vcp->vc_waitq, wait); @@ -95,7 +95,7 @@ static long coda_psdev_ioctl(struct file * filp, unsigned int cmd, unsigned long static ssize_t coda_psdev_write(struct file *file, const char __user *buf, size_t nbytes, loff_t *off) { - struct venus_comm *vcp = (struct venus_comm *) file->private_data; + struct venus_comm *vcp = file->private_data; struct upc_req *req = NULL; struct upc_req *tmp; struct list_head *lh; @@ -209,7 +209,7 @@ static ssize_t coda_psdev_read(struct file * file, char __user * buf, size_t nbytes, loff_t *off) { DECLARE_WAITQUEUE(wait, current); - struct venus_comm *vcp = (struct venus_comm *) file->private_data; + struct venus_comm *vcp = file->private_data; struct upc_req *req; ssize_t retval = 0, count = 0; @@ -300,7 +300,7 @@ static int coda_psdev_open(struct inode * inode, struct file * file) static int coda_psdev_release(struct inode * inode, struct file * file) { - struct venus_comm *vcp = (struct venus_comm *) file->private_data; + struct venus_comm *vcp = file->private_data; struct upc_req *req, *tmp; if (!vcp || !vcp->vc_inuse ) { -- 1.7.1.337.g6068.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/