Prev: [PATCH 21/36] drivers/usb: Remove unnecessary casts of private_data
Next: [PATCH 33/36] net/sunrpc: Remove unnecessary casts of private_data
From: Joe Perches on 12 Jul 2010 17:00 Signed-off-by: Joe Perches <joe(a)perches.com> --- 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(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |