diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-10-14 09:56:14 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 17:01:05 +0100 |
commit | 9aabd03272c8dc0b91341da865ae742fe0ecb2c3 (patch) | |
tree | 378486dd5b5736dfba6a4602786ccaf5cd326658 | |
parent | usb: phy: phy-tegra-usb: delete unnecessary 'out of memory' messages (diff) | |
download | linux-9aabd03272c8dc0b91341da865ae742fe0ecb2c3.tar.xz linux-9aabd03272c8dc0b91341da865ae742fe0ecb2c3.zip |
usb: phy: phy-am335x-control: 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>
-rw-r--r-- | drivers/usb/phy/phy-am335x-control.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy-am335x-control.c b/drivers/usb/phy/phy-am335x-control.c index 35b6083b7999..2e923c581809 100644 --- a/drivers/usb/phy/phy-am335x-control.c +++ b/drivers/usb/phy/phy-am335x-control.c @@ -147,10 +147,8 @@ static int am335x_control_usb_probe(struct platform_device *pdev) phy_ctrl = of_id->data; ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL); - if (!ctrl_usb) { - dev_err(&pdev->dev, "unable to alloc memory for control usb\n"); + if (!ctrl_usb) return -ENOMEM; - } ctrl_usb->dev = &pdev->dev; |