Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Syam Sidhardhan and committed by
Marcel Holtmann
f71e823b 17722e24

+1 -3
+1 -3
drivers/bluetooth/bfusb.c
··· 636 636 637 637 /* Initialize control structure and load firmware */ 638 638 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) 641 640 goto done; 642 - } 643 641 644 642 data->udev = udev; 645 643 data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;