2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

Bluetooth: bcm203x: 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:
Syam Sidhardhan 2015-12-22 19:30:18 +05:30 committed by Marcel Holtmann
parent 806f50c729
commit 17722e245b

View File

@ -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;