aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2022-09-27 11:18:19 +0000
committerGreg Kroah-Hartman <[email protected]>2022-09-30 12:58:46 +0000
commit12f3a5eba3c4eb0031d7db36773579e517459a41 (patch)
treef1d8bafa2e129938bb337684d69d6a94c91bac8a /drivers/tty/serial/sccnxp.c
parenttty: serial: unify TX space reads under altera_jtaguart_tx_space() (diff)
downloadkernel-12f3a5eba3c4eb0031d7db36773579e517459a41.tar.gz
kernel-12f3a5eba3c4eb0031d7db36773579e517459a41.zip
tty: serial: do unlock on a common path in altera_jtaguart_console_putc()
port->lock is unlocked in each branch in altera_jtaguart_console_putc(), so do it before the "if". "status" needs not be under the lock, as the register was already read. Cc: Tobias Klauser <[email protected]> Signed-off-by: Jiri Slaby <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Acked-by: Tobias Klauser <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions