]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: use guards for simple mutex locks
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 8 Aug 2024 10:35:37 +0000 (12:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 06:25:20 +0000 (08:25 +0200)
commit5879adbff5aad0436298db006a922dd576339c7f
tree39e99f6af0521ee899a4ee447334e6b9a9c823f3
parent98e24a58b597d888f604f0de43fcf5eb5eb204b4
serial: use guards for simple mutex locks

Guards can help to make the code more readable. So use it wherever they
do so.

On many places labels and 'ret' locals are eliminated completely.

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