summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-10-14 15:56:19 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-03 15:42:05 -0800
commit88538be35bc9d66bb425c431e30b3614482a840d (patch)
tree9b6538c4986a20a1a2534b92ccaeec1b89e87fae /drivers/usb
parent39d98bdc108b0d00be4318735384e03aed4f0466 (diff)
downloadblackbird-obmc-linux-88538be35bc9d66bb425c431e30b3614482a840d.tar.gz
blackbird-obmc-linux-88538be35bc9d66bb425c431e30b3614482a840d.zip
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/renesas_usbhs/common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index b3b6813ab270..6dae1151569b 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -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))
OpenPOWER on IntegriCloud