OSDN Git Service

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 17:45:16 +0000 (19:45 +0200)
commitf2387d0c34676524287e28ee8e87da45677afac6
treeca8df327d3451b40e302b6706dbc470e9307630c
parent6db8c08829124e2cd94ccb1e2baf458e777f1496
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