USB: serial: use variable for status
commit3161da970d38cd6ed2ba8cadec93874d1d06e11e
authorOliver Neukum <oneukum@suse.com>
Thu, 14 Jul 2016 13:01:40 +0000 (14 15:01 +0200)
committerJohan Hovold <johan@kernel.org>
Sat, 16 Jul 2016 10:45:39 +0000 (16 12:45 +0200)
tree47f6bdba0dd52e53b7d385d78f0f54317685ff25
parent3c0415fa08548e3bc63ef741762664497ab187ed
USB: serial: use variable for status

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>
drivers/usb/serial/generic.c