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