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/epca.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/epca.c')
-rw-r--r-- | drivers/char/epca.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/epca.c b/drivers/char/epca.c index cf2461d34e5f..da2d2cf16f55 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c | |||
@@ -392,7 +392,7 @@ static struct channel *verifyChannel(struct tty_struct *tty) | |||
392 | * through tty->driver_data this should catch it. | 392 | * through tty->driver_data this should catch it. |
393 | */ | 393 | */ |
394 | if (tty) { | 394 | if (tty) { |
395 | struct channel *ch = (struct channel *)tty->driver_data; | 395 | struct channel *ch = tty->driver_data; |
396 | if (ch >= &digi_channels[0] && ch < &digi_channels[nbdevs]) { | 396 | if (ch >= &digi_channels[0] && ch < &digi_channels[nbdevs]) { |
397 | if (ch->magic == EPCA_MAGIC) | 397 | if (ch->magic == EPCA_MAGIC) |
398 | return ch; | 398 | return ch; |
@@ -2097,7 +2097,7 @@ static int info_ioctl(struct tty_struct *tty, struct file *file, | |||
2097 | 2097 | ||
2098 | static int pc_tiocmget(struct tty_struct *tty, struct file *file) | 2098 | static int pc_tiocmget(struct tty_struct *tty, struct file *file) |
2099 | { | 2099 | { |
2100 | struct channel *ch = (struct channel *) tty->driver_data; | 2100 | struct channel *ch = tty->driver_data; |
2101 | struct board_chan __iomem *bc; | 2101 | struct board_chan __iomem *bc; |
2102 | unsigned int mstat, mflag = 0; | 2102 | unsigned int mstat, mflag = 0; |
2103 | unsigned long flags; | 2103 | unsigned long flags; |
@@ -2131,7 +2131,7 @@ static int pc_tiocmget(struct tty_struct *tty, struct file *file) | |||
2131 | static int pc_tiocmset(struct tty_struct *tty, struct file *file, | 2131 | static int pc_tiocmset(struct tty_struct *tty, struct file *file, |
2132 | unsigned int set, unsigned int clear) | 2132 | unsigned int set, unsigned int clear) |
2133 | { | 2133 | { |
2134 | struct channel *ch = (struct channel *) tty->driver_data; | 2134 | struct channel *ch = tty->driver_data; |
2135 | unsigned long flags; | 2135 | unsigned long flags; |
2136 | 2136 | ||
2137 | if (!ch) | 2137 | if (!ch) |
@@ -2178,7 +2178,7 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file, | |||
2178 | unsigned int mflag, mstat; | 2178 | unsigned int mflag, mstat; |
2179 | unsigned char startc, stopc; | 2179 | unsigned char startc, stopc; |
2180 | struct board_chan __iomem *bc; | 2180 | struct board_chan __iomem *bc; |
2181 | struct channel *ch = (struct channel *) tty->driver_data; | 2181 | struct channel *ch = tty->driver_data; |
2182 | void __user *argp = (void __user *)arg; | 2182 | void __user *argp = (void __user *)arg; |
2183 | 2183 | ||
2184 | if (ch) | 2184 | if (ch) |
@@ -2473,7 +2473,7 @@ static void pc_unthrottle(struct tty_struct *tty) | |||
2473 | 2473 | ||
2474 | static int pc_send_break(struct tty_struct *tty, int msec) | 2474 | static int pc_send_break(struct tty_struct *tty, int msec) |
2475 | { | 2475 | { |
2476 | struct channel *ch = (struct channel *) tty->driver_data; | 2476 | struct channel *ch = tty->driver_data; |
2477 | unsigned long flags; | 2477 | unsigned long flags; |
2478 | 2478 | ||
2479 | if (msec == -1) | 2479 | if (msec == -1) |