]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: sc16is7xx: change conditional operator indentation
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 27 Oct 2025 14:29:54 +0000 (10:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Oct 2025 14:25:41 +0000 (15:25 +0100)
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>
drivers/tty/serial/sc16is7xx.c

index 644f4e9233dbcb107f67121aeaf1e2c6ca24be32..3faf821b8b89d184f632f9739dfeef1e6564b5b8 100644 (file)
@@ -1180,8 +1180,7 @@ static int sc16is7xx_startup(struct uart_port *port)
        /* This bit must be written with LCR[7] = 0 */
        sc16is7xx_port_update(port, SC16IS7XX_MCR_REG,
                              SC16IS7XX_MCR_IRDA_BIT,
-                             one->irda_mode ?
-                               SC16IS7XX_MCR_IRDA_BIT : 0);
+                             one->irda_mode ? SC16IS7XX_MCR_IRDA_BIT : 0);
 
        /* Enable the Rx and Tx FIFO */
        sc16is7xx_port_update(port, SC16IS7XX_EFCR_REG,