]> Gentwo Git Trees - linux/.git/commit
tty: n_hdlc: simplify return from n_hdlc_tty_ioctl()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Nov 2025 10:01:33 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 17:30:40 +0000 (18:30 +0100)
commit3ae99599bf47eb99f6090c9502e32993fb331e0e
tree41e36c7f5aa3e9296000feb19e940446d37cb886
parent2fc541e525178d6bd3c14c0d05a0e5889831da50
tty: n_hdlc: simplify return from n_hdlc_tty_ioctl()

The cases in the switch() of n_hdlc_tty_ioctl() can return immediately
-- no need to store into error and return later.

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