1
0
Fork 0

usb: renesas_usbhs: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
wifi-calibration
Peter Chen 2014-10-14 15:56:19 +08:00 committed by Greg Kroah-Hartman
parent 39d98bdc10
commit 88538be35b
1 changed files with 1 additions and 3 deletions

View File

@ -505,10 +505,8 @@ static int usbhs_probe(struct platform_device *pdev)
/* usb private data */
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
if (!priv) {
dev_err(&pdev->dev, "Could not allocate priv\n");
if (!priv)
return -ENOMEM;
}
priv->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(priv->base))