Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;