diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2015-12-22 17:00:20 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-12-22 17:25:33 +0300 |
commit | 7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e (patch) | |
tree | 58487efdf1bdb5fc94694363b0506318c8dec1da | |
parent | f71e823b8776b3ce0073087d7b8ec8a7d31fe818 (diff) | |
download | linux-7ddb69222d0fdc0bc83b60dbb21d9864ebf2907e.tar.xz |
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>
-rw-r--r-- | drivers/bluetooth/bfusb.c | 2 |
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; |