aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/ser_a2232.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2009-01-02 13:47:26 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-02 10:19:40 -0800
commitc9f19e96a2f33cd56c2bd19f87a0c4982d011c2b (patch)
tree7ebb5f6e6648e7e8eb975944d4a18aadb05851bf /drivers/char/ser_a2232.c
parent0ac6053c4db9369d7b0f9b39c30f4fb04405666b (diff)
downloadkernel_samsung_tuna-c9f19e96a2f33cd56c2bd19f87a0c4982d011c2b.zip
kernel_samsung_tuna-c9f19e96a2f33cd56c2bd19f87a0c4982d011c2b.tar.gz
kernel_samsung_tuna-c9f19e96a2f33cd56c2bd19f87a0c4982d011c2b.tar.bz2
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/ser_a2232.c')
-rw-r--r--drivers/char/ser_a2232.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ser_a2232.c b/drivers/char/ser_a2232.c
index 0c97f34..33872a2 100644
--- a/drivers/char/ser_a2232.c
+++ b/drivers/char/ser_a2232.c
@@ -460,14 +460,14 @@ static void a2232_throttle(struct tty_struct *tty)
if switched on. So the only thing we can do at this
layer here is not taking any characters out of the
A2232 buffer any more. */
- struct a2232_port *port = (struct a2232_port *) tty->driver_data;
+ struct a2232_port *port = tty->driver_data;
port->throttle_input = -1;
}
static void a2232_unthrottle(struct tty_struct *tty)
{
/* Unthrottle: dual to "throttle()" above. */
- struct a2232_port *port = (struct a2232_port *) tty->driver_data;
+ struct a2232_port *port = tty->driver_data;
port->throttle_input = 0;
}