]> www.infradead.org Git - users/dwmw2/linux.git/commit
USB: serial: use variable for status
authorOliver Neukum <oneukum@suse.com>
Thu, 14 Jul 2016 13:01:40 +0000 (15:01 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:11:57 +0000 (21:11 +0100)
commit650ef8048e3fdedab690e771ec456b417bb7cf3b
treef5857609f764611457baa8426c9c86106ab246f5
parentd7a710e3e60080dba8a8669c0fe6a30f61c43023
USB: serial: use variable for status

commit 3161da970d38cd6ed2ba8cadec93874d1d06e11e upstream.

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: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/generic.c