projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71e823
)
Bluetooth: bfusb: Fix the return error code
author
Syam Sidhardhan
<s.syam@samsung.com>
Tue, 22 Dec 2015 14:00:20 +0000
(19:30 +0530)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 22 Dec 2015 14:25:33 +0000
(15:25 +0100)
-ENOMEM is the appropriate error code instead of -EIO.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bfusb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/bfusb.c
b/drivers/bluetooth/bfusb.c
index c304102fa6735625b22567b693b855d3ed4a4988..3bf4ec60e073608d558ff5e5b8fb8273ce043d56 100644
(file)
--- a/
drivers/bluetooth/bfusb.c
+++ b/
drivers/bluetooth/bfusb.c
@@
-637,7
+637,7
@@
static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i
/* Initialize control structure and load firmware */
data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
if (!data)
-
goto done
;
+
return -ENOMEM
;
data->udev = udev;
data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;