Skip to content

Commit f71e823

Browse files
syamsidhardhholtmann
authored andcommitted
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>
1 parent 17722e2 commit f71e823

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/bluetooth/bfusb.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,10 +636,8 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i
636636

637637
/* Initialize control structure and load firmware */
638638
data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
639-
if (!data) {
640-
BT_ERR("Can't allocate memory for control structure");
639+
if (!data)
641640
goto done;
642-
}
643641

644642
data->udev = udev;
645643
data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;

0 commit comments

Comments
 (0)