tty_io: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kulikov Vasiliy 2010-06-29 14:15:09 +04:00 committed by Greg Kroah-Hartman
parent 61fd15262b
commit 2b50d24760

View File

@ -893,7 +893,7 @@ static ssize_t tty_read(struct file *file, char __user *buf, size_t count,
struct inode *inode; struct inode *inode;
struct tty_ldisc *ld; struct tty_ldisc *ld;
tty = (struct tty_struct *)file->private_data; tty = file->private_data;
inode = file->f_path.dentry->d_inode; inode = file->f_path.dentry->d_inode;
if (tty_paranoia_check(tty, inode, "tty_read")) if (tty_paranoia_check(tty, inode, "tty_read"))
return -EIO; return -EIO;
@ -1070,7 +1070,7 @@ static ssize_t tty_write(struct file *file, const char __user *buf,
ssize_t ret; ssize_t ret;
struct tty_ldisc *ld; struct tty_ldisc *ld;
tty = (struct tty_struct *)file->private_data; tty = file->private_data;
if (tty_paranoia_check(tty, inode, "tty_write")) if (tty_paranoia_check(tty, inode, "tty_write"))
return -EIO; return -EIO;
if (!tty || !tty->ops->write || if (!tty || !tty->ops->write ||
@ -1513,7 +1513,7 @@ int tty_release(struct inode *inode, struct file *filp)
int idx; int idx;
char buf[64]; char buf[64];
tty = (struct tty_struct *)filp->private_data; tty = filp->private_data;
if (tty_paranoia_check(tty, inode, "tty_release_dev")) if (tty_paranoia_check(tty, inode, "tty_release_dev"))
return 0; return 0;
@ -1920,7 +1920,7 @@ static unsigned int tty_poll(struct file *filp, poll_table *wait)
struct tty_ldisc *ld; struct tty_ldisc *ld;
int ret = 0; int ret = 0;
tty = (struct tty_struct *)filp->private_data; tty = filp->private_data;
if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_poll")) if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_poll"))
return 0; return 0;
@ -1937,7 +1937,7 @@ static int __tty_fasync(int fd, struct file *filp, int on)
unsigned long flags; unsigned long flags;
int retval = 0; int retval = 0;
tty = (struct tty_struct *)filp->private_data; tty = filp->private_data;
if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_fasync")) if (tty_paranoia_check(tty, filp->f_path.dentry->d_inode, "tty_fasync"))
goto out; goto out;
@ -2497,7 +2497,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
struct tty_ldisc *ld; struct tty_ldisc *ld;
struct inode *inode = file->f_dentry->d_inode; struct inode *inode = file->f_dentry->d_inode;
tty = (struct tty_struct *)file->private_data; tty = file->private_data;
if (tty_paranoia_check(tty, inode, "tty_ioctl")) if (tty_paranoia_check(tty, inode, "tty_ioctl"))
return -EINVAL; return -EINVAL;