@@ -893,7 +893,7 @@ static ssize_t tty_read(struct file *file, char __user *buf, size_t count,
893
893
struct inode * inode ;
894
894
struct tty_ldisc * ld ;
895
895
896
- tty = ( struct tty_struct * ) file -> private_data ;
896
+ tty = file -> private_data ;
897
897
inode = file -> f_path .dentry -> d_inode ;
898
898
if (tty_paranoia_check (tty , inode , "tty_read" ))
899
899
return - EIO ;
@@ -1070,7 +1070,7 @@ static ssize_t tty_write(struct file *file, const char __user *buf,
1070
1070
ssize_t ret ;
1071
1071
struct tty_ldisc * ld ;
1072
1072
1073
- tty = ( struct tty_struct * ) file -> private_data ;
1073
+ tty = file -> private_data ;
1074
1074
if (tty_paranoia_check (tty , inode , "tty_write" ))
1075
1075
return - EIO ;
1076
1076
if (!tty || !tty -> ops -> write ||
@@ -1513,7 +1513,7 @@ int tty_release(struct inode *inode, struct file *filp)
1513
1513
int idx ;
1514
1514
char buf [64 ];
1515
1515
1516
- tty = ( struct tty_struct * ) filp -> private_data ;
1516
+ tty = filp -> private_data ;
1517
1517
if (tty_paranoia_check (tty , inode , "tty_release_dev" ))
1518
1518
return 0 ;
1519
1519
@@ -1920,7 +1920,7 @@ static unsigned int tty_poll(struct file *filp, poll_table *wait)
1920
1920
struct tty_ldisc * ld ;
1921
1921
int ret = 0 ;
1922
1922
1923
- tty = ( struct tty_struct * ) filp -> private_data ;
1923
+ tty = filp -> private_data ;
1924
1924
if (tty_paranoia_check (tty , filp -> f_path .dentry -> d_inode , "tty_poll" ))
1925
1925
return 0 ;
1926
1926
@@ -1937,7 +1937,7 @@ static int __tty_fasync(int fd, struct file *filp, int on)
1937
1937
unsigned long flags ;
1938
1938
int retval = 0 ;
1939
1939
1940
- tty = ( struct tty_struct * ) filp -> private_data ;
1940
+ tty = filp -> private_data ;
1941
1941
if (tty_paranoia_check (tty , filp -> f_path .dentry -> d_inode , "tty_fasync" ))
1942
1942
goto out ;
1943
1943
@@ -2497,7 +2497,7 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
2497
2497
struct tty_ldisc * ld ;
2498
2498
struct inode * inode = file -> f_dentry -> d_inode ;
2499
2499
2500
- tty = ( struct tty_struct * ) file -> private_data ;
2500
+ tty = file -> private_data ;
2501
2501
if (tty_paranoia_check (tty , inode , "tty_ioctl" ))
2502
2502
return - EINVAL ;
2503
2503
0 commit comments