diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-10-14 11:56:00 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 19:01:02 +0300 |
commit | 3dc3b4e15e09d785f06c7122a9d3e564e7065119 (patch) | |
tree | e314e0a464fc1a69ed73ec1a92e758954026ab57 /drivers | |
parent | 0590c4bf4bbbc608cf963dbf7d5aa4f202c8cf71 (diff) | |
download | linux-3dc3b4e15e09d785f06c7122a9d3e564e7065119.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/udc/s3c-hsudc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c index dfbf55797360..f658f69567bd 100644 --- 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; |