diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-08-19 10:44:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-27 19:17:34 -0400 |
commit | 97f2c4289c591c2f24fb4a4cc03d78a0bef93187 (patch) | |
tree | e1675c382766f811ad1e6ba44b1aee4e01849a42 /drivers/tty | |
parent | 5faf75d7fed2a27c6cd3a2669b2bad22c0dc640f (diff) |
tty: serial: lpc32xx_hs: don't call tty_flip_buffer_push() twice
serial_lpc32xx_interrupt() calls __serial_lpc32xx_rx() first and then
tty_flip_buffer_push() immediately after that. But last statement of
__serial_lpc32xx_rx() already called tty_flip_buffer_push()..
So, probably its not required to be called twice. Lets remove one of them.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/lpc32xx_hs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/lpc32xx_hs.c b/drivers/tty/serial/lpc32xx_hs.c index dffea6b2cd7d..8fdf6a8fc074 100644 --- a/drivers/tty/serial/lpc32xx_hs.c +++ b/drivers/tty/serial/lpc32xx_hs.c | |||
@@ -351,10 +351,8 @@ static irqreturn_t serial_lpc32xx_interrupt(int irq, void *dev_id) | |||
351 | } | 351 | } |
352 | 352 | ||
353 | /* Data received? */ | 353 | /* Data received? */ |
354 | if (status & (LPC32XX_HSU_RX_TIMEOUT_INT | LPC32XX_HSU_RX_TRIG_INT)) { | 354 | if (status & (LPC32XX_HSU_RX_TIMEOUT_INT | LPC32XX_HSU_RX_TRIG_INT)) |
355 | __serial_lpc32xx_rx(port); | 355 | __serial_lpc32xx_rx(port); |
356 | tty_flip_buffer_push(tport); | ||
357 | } | ||
358 | 356 | ||
359 | /* Transmit data request? */ | 357 | /* Transmit data request? */ |
360 | if ((status & LPC32XX_HSU_TX_INT) && (!uart_tx_stopped(port))) { | 358 | if ((status & LPC32XX_HSU_TX_INT) && (!uart_tx_stopped(port))) { |