projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0590c4b
)
usb: gadget: s3c-hsudc: delete unnecessary 'out of memory' messages
author
Peter Chen
<peter.chen@freescale.com>
Tue, 14 Oct 2014 07:56:00 +0000
(15:56 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Mon, 3 Nov 2014 16:01:02 +0000
(10:01 -0600)
The memory subsystem has already had similar message for it.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/s3c-hsudc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/s3c-hsudc.c
b/drivers/usb/gadget/udc/s3c-hsudc.c
index dfbf55797360ad0ba1bd02e5ece0dc2d08ae939c..f658f69567bd74c0aeca1c02caf594ca5536d02a 100644
(file)
--- a/
drivers/usb/gadget/udc/s3c-hsudc.c
+++ b/
drivers/usb/gadget/udc/s3c-hsudc.c
@@
-1267,10
+1267,8
@@
static int s3c_hsudc_probe(struct platform_device *pdev)
hsudc = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsudc) +
sizeof(struct s3c_hsudc_ep) * pd->epnum,
GFP_KERNEL);
- if (!hsudc) {
- dev_err(dev, "cannot allocate memory\n");
+ if (!hsudc)
return -ENOMEM;
- }
platform_set_drvdata(pdev, dev);
hsudc->dev = dev;