From: Pekka Enberg Date: Fri, 30 Jan 2009 09:32:47 +0000 (+0200) Subject: Staging: w35und: fix usb_control_msg() error handling in wb35_probe() X-Git-Tag: v2.6.29-rc7~21^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acfa5110b83b171ec509eaf2d1a9e93a5f4709bd;p=pandora-kernel.git Staging: w35und: fix usb_control_msg() error handling in wb35_probe() If successful, the usb_control_msg() function returns the number of bytes transferred. Fix up wb35_probe() to only bail out if the function returns a negative number. Also, fix up ieee80211_alloc_hw() error code to ENOMEM; otherwise GCC complains that err might be undefined (and is right about that). Acked-by: Pavel Machek Reported-and-tested-by: Sandro Bonazzola Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed