projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17722e2
)
Bluetooth: bfusb: Remove redundant error message
author
Syam Sidhardhan
<s.syam@samsung.com>
Tue, 22 Dec 2015 14:00:19 +0000
(19:30 +0530)
committer
Marcel 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/bfusb.c
b/drivers/bluetooth/bfusb.c
index 72d8bfabef0952f7a063fdff4b27fb5450df810b..c304102fa6735625b22567b693b855d3ed4a4988 100644
(file)
--- 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;