USB: sierra: remove incorrect usage of the urb status field
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Jun 2007 05:22:23 +0000 (14:22 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:37 +0000 (16:34 -0700)
commit17c2327419a889293fb955baf0c69a7d38c5809c
tree6eacf6dd5ff7a01798fba38a9bd76b428ae33d47
parent05400013698776a71b1e401ceacf709bda3d1517
USB: sierra: remove incorrect usage of the urb status field

You can't rely on the fact that the status really is correct like it was.

Also simplified the write path and now we allocate the urb and data on
the fly, instead of trying to do that really odd timeout check which I
am guessing doesn't really work properly.  This should speed up the
device by keeping the hardware queue full easier.

As a benefit, this reduces the size of the driver.

Cc: Kevin Lloyd <linux@sierrawireless.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/sierra.c