]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: use variable for status
authorOliver Neukum <oneukum@suse.com>
Thu, 14 Jul 2016 13:01:40 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 07:17:23 +0000 (09:17 +0200)
commit6b612ec29abd6cf2589dea89cf0720be0ad0f61e
treea20eeff9e54941f4a51ccec8a3a0bdbf13ae8435
parent466153fc585e594c0a9f828e0839ca55674451d3
USB: serial: use variable for status

[ Upstream commit 3161da970d38cd6ed2ba8cadec93874d1d06e11e ]

This patch turns status in a variable read once from the URB.
The long term plan is to deliver status to the callback.
In addition it makes the code a bit more elegant.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/serial/generic.c