From: Ondrej Zary Date: Fri, 9 May 2014 16:10:34 +0000 (+0200) Subject: orinoco_usb: Fix broken firmware load error checking X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~122^2^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe5d96246e9c4d266c4a8dca99f82ad82f2305b5;p=pandora-kernel.git orinoco_usb: Fix broken firmware load error checking The check of ezusb_firmware_download() return value (added by commit 488ec878034eccb852267b0e27ce9d511f75c587) is broken because ezusb_firmware_download() returns 1 on success. This causes the driver not to work with the following error: orinoco_usb: probe of 3-3:1.0 failed with error -14 Check the return value only for negative values. This fix should be applied to -stable kernels too. Signed-off-by: Ondrej Zary Signed-off-by: John W. Linville --- Reading git-diff-tree failed