提交 f71e823b 编写于 作者: S Syam Sidhardhan 提交者: Marcel Holtmann

Bluetooth: bfusb: Remove redundant error message

devm_kzalloc prints its own OOM message upon failure.
Signed-off-by: NSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 17722e24
无相关合并请求
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部