summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/bfusb.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2015-12-22 15:00:20 +0100
committerMarcel Holtmann <marcel@holtmann.org>2015-12-22 15:25:33 +0100
commit7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e (patch)
tree58487efdf1bdb5fc94694363b0506318c8dec1da /drivers/bluetooth/bfusb.c
parentBluetooth: bfusb: Remove redundant error message (diff)
downloadlinux-7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e.tar.xz
linux-7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e.zip
Bluetooth: bfusb: Fix the return error code
-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>
Diffstat (limited to 'drivers/bluetooth/bfusb.c')
-rw-r--r--drivers/bluetooth/bfusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c
index c304102fa673..3bf4ec60e073 100644
--- 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;