From: Syam Sidhardhan Date: Tue, 22 Dec 2015 14:00:19 +0000 (+0530) Subject: Bluetooth: bfusb: Remove redundant error message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f71e823b8776b3ce0073087d7b8ec8a7d31fe818;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Bluetooth: bfusb: Remove redundant error message devm_kzalloc prints its own OOM message upon failure. Signed-off-by: Syam Sidhardhan Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index 72d8bfabef09..c304102fa673 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c @@ -636,10 +636,8 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i /* Initialize control structure and load firmware */ data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL); - if (!data) { - BT_ERR("Can't allocate memory for control structure"); + if (!data) goto done; - } data->udev = udev; data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;