]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
serial: 8250: Add an empty line and remove some useless {}
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 28 Apr 2021 07:30:52 +0000 (09:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:25:42 +0000 (16:25 +0200)
This fixes the following checkpatch.pl warnings:
   WARNING: Missing a blank line after declarations
   WARNING: braces {} are not necessary for any arm of this statement

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/257ffd691b4a062ad017333c9430d69da6dbd29a.1619594713.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c

index 081b773a54c967488f4d73312c686d8617eaa3b6..1082e76c4d37c603963c8da8efb894198b150d57 100644 (file)
@@ -321,9 +321,9 @@ static int univ8250_setup_irq(struct uart_8250_port *up)
         * hardware interrupt, we use a timer-based system.  The original
         * driver used to do this with IRQ0.
         */
-       if (!port->irq) {
+       if (!port->irq)
                mod_timer(&up->timer, jiffies + uart_poll_timeout(port));
-       else
+       else
                retval = serial_link_irq_chain(up);
 
        return retval;
@@ -752,6 +752,7 @@ void serial8250_suspend_port(int line)
        if (!console_suspend_enabled && uart_console(port) &&
            port->type != PORT_8250) {
                unsigned char canary = 0xa5;
+
                serial_out(up, UART_SCR, canary);
                if (serial_in(up, UART_SCR) == canary)
                        up->canary = canary;