mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
usb: gadget: s3c-hsudc: delete unnecessary 'out of memory' messages
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>
This commit is contained in:
parent
0590c4bf4b
commit
3dc3b4e15e
1 changed files with 1 additions and 3 deletions
|
@ -1267,10 +1267,8 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
|
||||||
hsudc = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsudc) +
|
hsudc = devm_kzalloc(&pdev->dev, sizeof(struct s3c_hsudc) +
|
||||||
sizeof(struct s3c_hsudc_ep) * pd->epnum,
|
sizeof(struct s3c_hsudc_ep) * pd->epnum,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!hsudc) {
|
if (!hsudc)
|
||||||
dev_err(dev, "cannot allocate memory\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, dev);
|
platform_set_drvdata(pdev, dev);
|
||||||
hsudc->dev = dev;
|
hsudc->dev = dev;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue