aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorPekka Enberg <[email protected]>2009-01-30 09:32:47 +0000
committerGreg Kroah-Hartman <[email protected]>2009-02-27 20:56:24 +0000
commitacfa5110b83b171ec509eaf2d1a9e93a5f4709bd (patch)
tree8f132828fd627a5bc25b26f42f8cb8281606401f /lib/debugobjects.c
parentStaging: w35und: fix registration with wlan stack (diff)
downloadkernel-acfa5110b83b171ec509eaf2d1a9e93a5f4709bd.tar.gz
kernel-acfa5110b83b171ec509eaf2d1a9e93a5f4709bd.zip
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 <[email protected]> Reported-and-tested-by: Sandro Bonazzola <[email protected]> Signed-off-by: Pekka Enberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions