Skip to content

Commit ba019a3

Browse files
Robert Baldygagregkh
authored andcommitted
serial: samsung: remove redundant interrupt enabling
Function s3c24xx_serial_start_tx_pio() enables interrupts if needed, so we don't have to (or even we shouldn't) enable them before. Signed-off-by: Robert Baldyga <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 632f32e commit ba019a3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/tty/serial/samsung.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,8 @@ void s3c24xx_serial_start_tx(struct uart_port *port)
358358
s3c24xx_serial_rx_disable(port);
359359

360360
tx_enabled(port) = 1;
361-
if (!ourport->dma || !ourport->dma->tx_chan) {
362-
if (s3c24xx_serial_has_interrupt_mask(port))
363-
__clear_bit(S3C64XX_UINTM_TXD,
364-
portaddrl(port, S3C64XX_UINTM));
365-
else
366-
enable_irq(ourport->tx_irq);
367-
361+
if (!ourport->dma || !ourport->dma->tx_chan)
368362
s3c24xx_serial_start_tx_pio(ourport);
369-
}
370363
}
371364

372365
if (ourport->dma && ourport->dma->tx_chan) {

0 commit comments

Comments
 (0)