Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0590c4bf authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi
Browse files

usb: gadget: bcm63xx_udc: delete unnecessary 'out of memory' messages



The memory subsystem has already had similar message for it.

Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 3efe90e9
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -2324,10 +2324,8 @@ static int bcm63xx_udc_probe(struct platform_device *pdev)
	int rc = -ENOMEM, i, irq;
	int rc = -ENOMEM, i, irq;


	udc = devm_kzalloc(dev, sizeof(*udc), GFP_KERNEL);
	udc = devm_kzalloc(dev, sizeof(*udc), GFP_KERNEL);
	if (!udc) {
	if (!udc)
		dev_err(dev, "cannot allocate memory\n");
		return -ENOMEM;
		return -ENOMEM;
	}


	platform_set_drvdata(pdev, udc);
	platform_set_drvdata(pdev, udc);
	udc->dev = dev;
	udc->dev = dev;