diff options
author | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-10-23 20:31:31 -0400 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky@linux.intel.com> | 2009-11-03 15:49:41 -0500 |
commit | 5a039e78522502067a68c969fb87fba1e39bc2a6 (patch) | |
tree | 8c154503cc1de69b0d6b5b40ddb6874dd11b3d8a /drivers | |
parent | faf57162e462eafe87458e21bf641f9d138f8171 (diff) |
wimax/i2400m: fix bad assignment of return value in i2400mu_tx_bulk_out
The function was always setting the return value to the amount of
bytes transferred, overwriting the error code in error paths.
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wimax/i2400m/usb-fw.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/usb-fw.c b/drivers/net/wimax/i2400m/usb-fw.c index d8f6ce29efff..ce6b9938fde0 100644 --- a/drivers/net/wimax/i2400m/usb-fw.c +++ b/drivers/net/wimax/i2400m/usb-fw.c | |||
@@ -157,7 +157,6 @@ retry: | |||
157 | result); | 157 | result); |
158 | goto retry; | 158 | goto retry; |
159 | } | 159 | } |
160 | result = len; | ||
161 | if (do_autopm) | 160 | if (do_autopm) |
162 | usb_autopm_put_interface(i2400mu->usb_iface); | 161 | usb_autopm_put_interface(i2400mu->usb_iface); |
163 | return result; | 162 | return result; |