Bluetooth: bfusb: Remove redundant error message
authorSyam Sidhardhan <s.syam@samsung.com>
Tue, 22 Dec 2015 14:00:19 +0000 (19:30 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Dec 2015 14:25:33 +0000 (15:25 +0100)
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>
drivers/bluetooth/bfusb.c

index 72d8bfabef0952f7a063fdff4b27fb5450df810b..c304102fa6735625b22567b693b855d3ed4a4988 100644 (file)
@@ -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;