Skip to content

Commit

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

0 comments on commit f71e823

Please sign in to comment.