]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Nov 2024 10:33:05 +0000 (12:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2024 15:38:23 +0000 (16:38 +0100)
serial8250_init_port() assings 0xFF for the unset or unknown port
IO type, use predefined constant for that instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20241125103305.1614986-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c

index 4d63d80e78a92cff8208abf8d7034bbe1822d730..1003516097df9f13ae30337b9622ff1b7764fe18 100644 (file)
@@ -3249,7 +3249,7 @@ void serial8250_init_port(struct uart_8250_port *up)
        port->ops = &serial8250_pops;
        port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);
 
-       up->cur_iotype = 0xFF;
+       up->cur_iotype = UPIO_UNKNOWN;
 }
 EXPORT_SYMBOL_GPL(serial8250_init_port);