]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: switch change_irq and change_port to bool in uart_set_info()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 17 Mar 2025 07:00:46 +0000 (08:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:00:52 +0000 (08:00 -0700)
change_irq and change_port are boolean variables. Mark them as such
(instead of uint).

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250317070046.24386-32-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c

index 20b2d5c5df6de3c540b76e741f4161f9f85f60c2..04eaa24ed153de4f78ba7318541213b534f8b265 100644 (file)
@@ -895,8 +895,8 @@ static int uart_set_info(struct tty_struct *tty, struct tty_port *port,
 {
        struct uart_port *uport = uart_port_check(state);
        unsigned long new_port;
-       unsigned int change_irq, change_port, closing_wait;
-       unsigned int old_custom_divisor, close_delay;
+       unsigned int old_custom_divisor, close_delay, closing_wait;
+       bool change_irq, change_port;
        upf_t old_flags, new_flags;
        int retval;