mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
17722e245b
commit
f71e823b87
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user