summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2015-12-22 19:30:19 +0530
committerMarcel Holtmann <marcel@holtmann.org>2015-12-22 15:25:33 +0100
commitf71e823b8776b3ce0073087d7b8ec8a7d31fe818 (patch)
tree88ec7cec175107a6bcde6894c04255d47187828c
parent17722e245b1eed116268338a0a05970bf797ce06 (diff)
downloadlinux-f71e823b8776b3ce0073087d7b8ec8a7d31fe818.tar.bz2
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>
-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;