Skip to content

Commit b90871c

Browse files
hvilleneuvedoogregkh
authored andcommitted
serial: sc16is7xx: change conditional operator indentation
Move "?" conditional operator all on same line to improve readability. Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://patch.msgid.link/20251027142957.1032073-13-hugo@hugovil.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent be1d3aa commit b90871c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/tty/serial/sc16is7xx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,8 +1180,7 @@ static int sc16is7xx_startup(struct uart_port *port)
11801180
/* This bit must be written with LCR[7] = 0 */
11811181
sc16is7xx_port_update(port, SC16IS7XX_MCR_REG,
11821182
SC16IS7XX_MCR_IRDA_BIT,
1183-
one->irda_mode ?
1184-
SC16IS7XX_MCR_IRDA_BIT : 0);
1183+
one->irda_mode ? SC16IS7XX_MCR_IRDA_BIT : 0);
11851184

11861185
/* Enable the Rx and Tx FIFO */
11871186
sc16is7xx_port_update(port, SC16IS7XX_EFCR_REG,

0 commit comments

Comments
 (0)