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:
806f50c
)
Bluetooth: bcm203x: Remove redundant error message
author
Syam Sidhardhan
<s.syam@samsung.com>
Tue, 22 Dec 2015 14:00:18 +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/bcm203x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/bcm203x.c
b/drivers/bluetooth/bcm203x.c
index 364f82b34d036bca12cbf0d48ef16af9b8ad68d2..5b0ef7bbe8ac8778ace9baf2ba0a12f930c5ed69 100644
(file)
--- 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
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;