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

Bluetooth: bcm203x: 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>
上级 806f50c7
......@@ -178,10 +178,8 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id
return -ENODEV;
data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL);
if (!data) {
BT_ERR("Can't allocate memory for data structure");
if (!data)
return -ENOMEM;
}
data->udev = udev;
data->state = BCM203X_LOAD_MINIDRV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部