summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/bcm63xx_udc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-10-14 11:55:59 +0400
committerFelipe Balbi <balbi@ti.com>2014-11-03 19:01:01 +0300
commit0590c4bf4bbbc608cf963dbf7d5aa4f202c8cf71 (patch)
treeca6ac0035fc9de88f473c929f775ba3e6896eaeb /drivers/usb/gadget/udc/bcm63xx_udc.c
parent3efe90e995e72084505ee49680f698e8d5730b48 (diff)
downloadlinux-0590c4bf4bbbc608cf963dbf7d5aa4f202c8cf71.tar.xz
usb: gadget: bcm63xx_udc: 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/usb/gadget/udc/bcm63xx_udc.c')
-rw-r--r--drivers/usb/gadget/udc/bcm63xx_udc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63xx_udc.c
index 2235b8808700..485c8c2bddc1 100644
--- a/drivers/usb/gadget/udc/bcm63xx_udc.c
+++ b/drivers/usb/gadget/udc/bcm63xx_udc.c
@@ -2324,10 +2324,8 @@ static int bcm63xx_udc_probe(struct platform_device *pdev)
int rc = -ENOMEM, i, irq;
udc = devm_kzalloc(dev, sizeof(*udc), GFP_KERNEL);
- if (!udc) {
- dev_err(dev, "cannot allocate memory\n");
+ if (!udc)
return -ENOMEM;
- }
platform_set_drvdata(pdev, udc);
udc->dev = dev;