]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
serial: 8250_core: fix coding style issue
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Fri, 22 Aug 2025 09:56:13 +0000 (11:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:48:20 +0000 (15:48 +0200)
Fix a coding style issue in 8250_core.c:

- Remove redundant NULL initialization of a global pointer

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250822095614.18108-1-osama.abdelkader@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c

index 7d931693b311dc46ed4662f5afa8c5edb454a660..bfa421ab32536be79061946f7a24773c3416ba78 100644 (file)
@@ -302,7 +302,7 @@ static void univ8250_release_irq(struct uart_8250_port *up)
                serial_unlink_irq_chain(up);
 }
 
-const struct uart_ops *univ8250_port_base_ops = NULL;
+const struct uart_ops *univ8250_port_base_ops;
 struct uart_ops univ8250_port_ops;
 
 static const struct uart_8250_ops univ8250_driver_ops = {