Skip to content

Commit

Permalink
Bluetooth: bfusb: Fix the return error code
Browse files Browse the repository at this point in the history
-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>
  • Loading branch information
Syam Sidhardhan authored and Marcel Holtmann committed Dec 22, 2015
1 parent f71e823 commit 7ddb692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/bfusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ddb692

Please sign in to comment.