diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2015-12-22 09:00:19 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-12-22 09:25:33 -0500 |
commit | f71e823b8776b3ce0073087d7b8ec8a7d31fe818 (patch) | |
tree | 88ec7cec175107a6bcde6894c04255d47187828c /drivers/bluetooth/bfusb.c | |
parent | 17722e245b1eed116268338a0a05970bf797ce06 (diff) |
Bluetooth: bfusb: Remove redundant error message
devm_kzalloc prints its own OOM message upon failure.
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index 72d8bfabef09..c304102fa673 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c | |||
@@ -636,10 +636,8 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
636 | 636 | ||
637 | /* Initialize control structure and load firmware */ | 637 | /* Initialize control structure and load firmware */ |
638 | data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL); | 638 | data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL); |
639 | if (!data) { | 639 | if (!data) |
640 | BT_ERR("Can't allocate memory for control structure"); | ||
641 | goto done; | 640 | goto done; |
642 | } | ||
643 | 641 | ||
644 | data->udev = udev; | 642 | data->udev = udev; |
645 | data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress; | 643 | data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress; |