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

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