summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/bfusb.c
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2015-12-22 15:00:19 +0100
committerMarcel Holtmann <marcel@holtmann.org>2015-12-22 15:25:33 +0100
commitf71e823b8776b3ce0073087d7b8ec8a7d31fe818 (patch)
tree88ec7cec175107a6bcde6894c04255d47187828c /drivers/bluetooth/bfusb.c
parentBluetooth: bcm203x: Remove redundant error message (diff)
downloadlinux-f71e823b8776b3ce0073087d7b8ec8a7d31fe818.tar.xz
linux-f71e823b8776b3ce0073087d7b8ec8a7d31fe818.zip
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.c4
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
/* Initialize control structure and load firmware */
data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
- if (!data) {
- BT_ERR("Can't allocate memory for control structure");
+ if (!data)
goto done;
- }
data->udev = udev;
data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;