diff options
author | Alan Cox <alan@redhat.com> | 2009-01-02 08:47:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-02 13:19:40 -0500 |
commit | c9f19e96a2f33cd56c2bd19f87a0c4982d011c2b (patch) | |
tree | 7ebb5f6e6648e7e8eb975944d4a18aadb05851bf /drivers/char/n_r3964.c | |
parent | 0ac6053c4db9369d7b0f9b39c30f4fb04405666b (diff) |
tty: Remove some pointless casts
disc_data and driver_data are void *
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/n_r3964.c')
-rw-r--r-- | drivers/char/n_r3964.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/n_r3964.c b/drivers/char/n_r3964.c index 4a8215a89ad3..d2e93e343226 100644 --- a/drivers/char/n_r3964.c +++ b/drivers/char/n_r3964.c | |||
@@ -1003,7 +1003,7 @@ static int r3964_open(struct tty_struct *tty) | |||
1003 | 1003 | ||
1004 | static void r3964_close(struct tty_struct *tty) | 1004 | static void r3964_close(struct tty_struct *tty) |
1005 | { | 1005 | { |
1006 | struct r3964_info *pInfo = (struct r3964_info *)tty->disc_data; | 1006 | struct r3964_info *pInfo = tty->disc_data; |
1007 | struct r3964_client_info *pClient, *pNext; | 1007 | struct r3964_client_info *pClient, *pNext; |
1008 | struct r3964_message *pMsg; | 1008 | struct r3964_message *pMsg; |
1009 | struct r3964_block_header *pHeader, *pNextHeader; | 1009 | struct r3964_block_header *pHeader, *pNextHeader; |
@@ -1058,7 +1058,7 @@ static void r3964_close(struct tty_struct *tty) | |||
1058 | static ssize_t r3964_read(struct tty_struct *tty, struct file *file, | 1058 | static ssize_t r3964_read(struct tty_struct *tty, struct file *file, |
1059 | unsigned char __user * buf, size_t nr) | 1059 | unsigned char __user * buf, size_t nr) |
1060 | { | 1060 | { |
1061 | struct r3964_info *pInfo = (struct r3964_info *)tty->disc_data; | 1061 | struct r3964_info *pInfo = tty->disc_data; |
1062 | struct r3964_client_info *pClient; | 1062 | struct r3964_client_info *pClient; |
1063 | struct r3964_message *pMsg; | 1063 | struct r3964_message *pMsg; |
1064 | struct r3964_client_message theMsg; | 1064 | struct r3964_client_message theMsg; |
@@ -1113,7 +1113,7 @@ static ssize_t r3964_read(struct tty_struct *tty, struct file *file, | |||
1113 | static ssize_t r3964_write(struct tty_struct *tty, struct file *file, | 1113 | static ssize_t r3964_write(struct tty_struct *tty, struct file *file, |
1114 | const unsigned char *data, size_t count) | 1114 | const unsigned char *data, size_t count) |
1115 | { | 1115 | { |
1116 | struct r3964_info *pInfo = (struct r3964_info *)tty->disc_data; | 1116 | struct r3964_info *pInfo = tty->disc_data; |
1117 | struct r3964_block_header *pHeader; | 1117 | struct r3964_block_header *pHeader; |
1118 | struct r3964_client_info *pClient; | 1118 | struct r3964_client_info *pClient; |
1119 | unsigned char *new_data; | 1119 | unsigned char *new_data; |
@@ -1182,7 +1182,7 @@ static ssize_t r3964_write(struct tty_struct *tty, struct file *file, | |||
1182 | static int r3964_ioctl(struct tty_struct *tty, struct file *file, | 1182 | static int r3964_ioctl(struct tty_struct *tty, struct file *file, |
1183 | unsigned int cmd, unsigned long arg) | 1183 | unsigned int cmd, unsigned long arg) |
1184 | { | 1184 | { |
1185 | struct r3964_info *pInfo = (struct r3964_info *)tty->disc_data; | 1185 | struct r3964_info *pInfo = tty->disc_data; |
1186 | if (pInfo == NULL) | 1186 | if (pInfo == NULL) |
1187 | return -EINVAL; | 1187 | return -EINVAL; |
1188 | switch (cmd) { | 1188 | switch (cmd) { |
@@ -1216,7 +1216,7 @@ static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old) | |||
1216 | static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, | 1216 | static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, |
1217 | struct poll_table_struct *wait) | 1217 | struct poll_table_struct *wait) |
1218 | { | 1218 | { |
1219 | struct r3964_info *pInfo = (struct r3964_info *)tty->disc_data; | 1219 | struct r3964_info *pInfo = tty->disc_data; |
1220 | struct r3964_client_info *pClient; | 1220 | struct r3964_client_info *pClient; |
1221 | struct r3964_message *pMsg = NULL; | 1221 | struct r3964_message *pMsg = NULL; |
1222 | unsigned long flags; | 1222 | unsigned long flags; |
@@ -1241,7 +1241,7 @@ static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, | |||
1241 | static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp, | 1241 | static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp, |
1242 | char *fp, int count) | 1242 | char *fp, int count) |
1243 | { | 1243 | { |
1244 | struct r3964_info *pInfo = (struct r3964_info *)tty->disc_data; | 1244 | struct r3964_info *pInfo = tty->disc_data; |
1245 | const unsigned char *p; | 1245 | const unsigned char *p; |
1246 | char *f, flags = 0; | 1246 | char *f, flags = 0; |
1247 | int i; | 1247 | int i; |