summary refs log tree commit diff
path: root/drivers/bluetooth/bfusb.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2015-12-22 19:30:20 +0530
committerMarcel Holtmann <marcel@holtmann.org>2015-12-22 15:25:33 +0100
commit7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e (patch)
tree58487efdf1bdb5fc94694363b0506318c8dec1da /drivers/bluetooth/bfusb.c
parentf71e823b8776b3ce0073087d7b8ec8a7d31fe818 (diff)
downloadlinux-7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e.tar.gz
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;