Skip to content

Commit

Permalink
Bluetooth: bcm203x: Remove redundant error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Syam Sidhardhan authored and Marcel Holtmann committed Dec 22, 2015
1 parent 806f50c commit 17722e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/bluetooth/bcm203x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 17722e2

Please sign in to comment.