]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: serial_core: use guard()s
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Nov 2025 10:01:40 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 17:30:40 +0000 (18:30 +0100)
commitb844e63807ecc5dcfe80e9920e5d14c5a4011aa4
treea40834a8db3173f771706f498d6ae37f7323eae2
parentf374a33e90e6cc17b05629636e68a012dc8347ed
serial: serial_core: use guard()s

Use guards in the serial_core code. This improves readability, makes
error handling easier, and marks locked portions of code explicit. All
that while being sure the lock is unlocked.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://patch.msgid.link/20251119100140.830761-11-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c