]> Gentwo Git Trees - linux/.git/commit
tty: moxa: use guard()s
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Nov 2025 10:01:35 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 17:30:40 +0000 (18:30 +0100)
commit1c7736dc68d7599e12e6b20c848dfbcbe0d04cdb
tree9a994ca907cb42efcbc392f43b54470c98a16014
parent8c03bfcf6b2bbb1b936b6a5dec3bd7922460cb9d
tty: moxa: use guard()s

Use guards in the moxa 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-6-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/moxa.c