diff options
author | Syam Sidhardhan <s.syam@samsung.com> | 2015-12-22 09:00:18 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-12-22 09:25:33 -0500 |
commit | 17722e245b1eed116268338a0a05970bf797ce06 (patch) | |
tree | 9dccbb6e1d5b033e135ce9bff6a6d3a1a1ca9994 | |
parent | 806f50c729c2d9f80500014f1d20c0ac74e66082 (diff) |
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>
-rw-r--r-- | drivers/bluetooth/bcm203x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c index 364f82b34d03..5b0ef7bbe8ac 100644 --- a/drivers/bluetooth/bcm203x.c +++ b/drivers/bluetooth/bcm203x.c | |||
@@ -178,10 +178,8 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id | |||
178 | return -ENODEV; | 178 | return -ENODEV; |
179 | 179 | ||
180 | data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); | 180 | data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); |
181 | if (!data) { | 181 | if (!data) |
182 | BT_ERR("Can't allocate memory for data structure"); | ||
183 | return -ENOMEM; | 182 | return -ENOMEM; |
184 | } | ||
185 | 183 | ||
186 | data->udev = udev; | 184 | data->udev = udev; |
187 | data->state = BCM203X_LOAD_MINIDRV; | 185 | data->state = BCM203X_LOAD_MINIDRV; |