]> git.baikalelectronics.ru Git - kernel.git/commit
serial: stm32: improve platform_get_irq condition handling in init_port
authorErwan Le Ray <erwan.leray@foss.st.com>
Thu, 21 Jan 2021 14:23:09 +0000 (15:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jan 2021 18:21:49 +0000 (19:21 +0100)
commit413ea3ae97dfb4dd01670d63fe3a0644a301a723
tree0c1abf5d732d96e8b2f40029de05ce8049b1490d
parent6b73404017ad1bbae1d78629a7dd37dc28671d14
serial: stm32: improve platform_get_irq condition handling in init_port

Replace "ret" variable by "irq" variable from platform_get_irq condition
handling in stm32_init_port as suggested by Jiri in "STM32 uart cleanup and
improvement" series review.
This change will prevent port->irq to be unexpectly modified by a potential
change of "ret" value introduced by a new patch.

Suggested-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20210121142309.6327-1-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c