aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:39:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:37 -0400
commita35234b2a67363f0174322b9cf8b385d236e8822 (patch)
tree646198a7e837818f4bd161bf7f5b018f02d6ed9d /drivers/usb
parent314e672506e87d263404c69c6343b97ca2c59ded (diff)
usb: host: xhci-tegra: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/xhci-tegra.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 0f53ae0f464e..d39b37be71f0 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1033,7 +1033,6 @@ static int tegra_xusb_probe(struct platform_device *pdev)
1033 tegra->phys = devm_kcalloc(&pdev->dev, tegra->num_phys, 1033 tegra->phys = devm_kcalloc(&pdev->dev, tegra->num_phys,
1034 sizeof(*tegra->phys), GFP_KERNEL); 1034 sizeof(*tegra->phys), GFP_KERNEL);
1035 if (!tegra->phys) { 1035 if (!tegra->phys) {
1036 dev_err(&pdev->dev, "failed to allocate PHY array\n");
1037 err = -ENOMEM; 1036 err = -ENOMEM;
1038 goto put_padctl; 1037 goto put_padctl;
1039 } 1038 }