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

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