]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: ftdi_sio: clean up receive processing
authorJohan Hovold <johan@kernel.org>
Wed, 8 Jul 2020 12:49:52 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:20 +0000 (09:48 +0200)
commit4e4eaf895b5217e8933f0c3536bbc9e12d049e2f
treeda93ea19abce2d663f2fd79ed284bb989a4f360e
parentabb9d1a281c6249aff4a144252f3176c5b1f8bc1
USB: serial: ftdi_sio: clean up receive processing

[ Upstream commit ce054039ba5e47b75a3be02a00274e52b06a6456 ]

Clean up receive processing by dropping the character pointer and
keeping the length argument unchanged throughout the function.

Also make it more apparent that sysrq processing can consume a
characters by adding an explicit continue.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/serial/ftdi_sio.c