USB: serial: ftd_sio usb: move status check
commit87c1edd217a6742e48028db6664d7763de0449f6
authorJason Wessel <jason.wessel@windriver.com>
Mon, 11 May 2009 20:24:08 +0000 (11 15:24 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:45 +0000 (15 21:44 -0700)
tree52dd981d6b2af6a10db8ec83b4b78d29a907a2c1
parent715b1dc01fe44537e8fce9566e4bb48d6821d84b
USB: serial: ftd_sio usb: move status check

Alan Stern commented that the private driver counts must be updated
regard less of the status return on the urb when the write call back
is executed.

This patch alters the behavior to update the private driver counts by
simply moving the status check to after the driver count update.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c