Commit 17722e24 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Marcel Holtmann

Bluetooth: bcm203x: Remove redundant error message

devm_kzalloc prints its own OOM message upon failure.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 806f50c7
...@@ -178,10 +178,8 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id ...@@ -178,10 +178,8 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id
return -ENODEV; return -ENODEV;
data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL);
if (!data) { if (!data)
BT_ERR("Can't allocate memory for data structure");
return -ENOMEM; return -ENOMEM;
}
data->udev = udev; data->udev = udev;
data->state = BCM203X_LOAD_MINIDRV; data->state = BCM203X_LOAD_MINIDRV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment