wimax/i2400m: fix bad assignment of return value in i2400mu_tx_bulk_out
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Sat, 24 Oct 2009 00:31:31 +0000 (17:31 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Tue, 3 Nov 2009 20:49:41 +0000 (12:49 -0800)
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>
drivers/net/wimax/i2400m/usb-fw.c

index d8f6ce29efff2475652fe1bca7972070763c7778..ce6b9938fde08ed80bd99ad6d2c6c8f94424394e 100644 (file)
@@ -157,7 +157,6 @@ retry:
                        result);
                goto retry;
        }
-       result = len;
        if (do_autopm)
                usb_autopm_put_interface(i2400mu->usb_iface);
        return result;