summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-hcd.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-06-04 09:10:21 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-07 09:09:10 -0700
commite90ed12cc4388d2919823fb31368781baa6dfbe5 (patch)
tree9249060c51aa045eb4c87c3be41ddbc6a8dcfdb0 /drivers/usb/host/ehci-hcd.c
parent325fd182cafe5c5ead51c27afb6b8be83c9081d4 (diff)
USB: wusbcore: return negative error codes
cbaf_cdid_get() is only used in cbaf_wusb_chid_store(). In the original code cbaf_cdid_get() returns either a negative error code or a small positive value on error. I have changed it to return -ENOENT if there is not enough data available. In the original code the caller changed the negative error codes to positive return values. I've changed it to just return the error value directly. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
0 files changed, 0 insertions, 0 deletions