From: Inaky Perez-Gonzalez Date: Sat, 24 Oct 2009 00:31:31 +0000 (-0700) Subject: wimax/i2400m: fix bad assignment of return value in i2400mu_tx_bulk_out X-Git-Tag: v3.12-rc1~12159^2~487^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a039e78522502067a68c969fb87fba1e39bc2a6;p=kernel%2Fkernel-generic.git 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 --- diff --git a/drivers/net/wimax/i2400m/usb-fw.c b/drivers/net/wimax/i2400m/usb-fw.c index d8f6ce2..ce6b993 100644 --- a/drivers/net/wimax/i2400m/usb-fw.c +++ b/drivers/net/wimax/i2400m/usb-fw.c @@ -157,7 +157,6 @@ retry: result); goto retry; } - result = len; if (do_autopm) usb_autopm_put_interface(i2400mu->usb_iface); return result;