X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Fser_a2232.c;h=80a5b840e22f646b432ab17cfe259ebd8f4c96a5;hb=944d79559d154c12becde0dab327016cf438f46c;hp=dda30e42ec79806b8e2de0d79e365c407befb4eb;hpb=53b2ec5518aa2623e8c0cb36f1c304a797988a46;p=linux-2.6 diff --git a/drivers/char/ser_a2232.c b/drivers/char/ser_a2232.c index dda30e42ec..80a5b840e2 100644 --- a/drivers/char/ser_a2232.c +++ b/drivers/char/ser_a2232.c @@ -194,11 +194,6 @@ static inline void a2232_receive_char(struct a2232_port *port, int ch, int err) */ struct tty_struct *tty = port->gs.tty; - if (tty->flip.count >= TTY_FLIPBUF_SIZE) - return; - - tty->flip.count++; - #if 0 switch(err) { case TTY_BREAK: @@ -212,8 +207,7 @@ static inline void a2232_receive_char(struct a2232_port *port, int ch, int err) } #endif - *tty->flip.flag_buf_ptr++ = err; - *tty->flip.char_buf_ptr++ = ch; + tty_insert_flip_char(tty, ch, err); tty_flip_buffer_push(tty); }