usb: host: xhci-tegra: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:39:09 +0000 (19:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:17:37 +0000 (19:17 +0200)
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>
drivers/usb/host/xhci-tegra.c

index 0f53ae0..d39b37b 100644 (file)
@@ -1033,7 +1033,6 @@ static int tegra_xusb_probe(struct platform_device *pdev)
        tegra->phys = devm_kcalloc(&pdev->dev, tegra->num_phys,
                                   sizeof(*tegra->phys), GFP_KERNEL);
        if (!tegra->phys) {
-               dev_err(&pdev->dev, "failed to allocate PHY array\n");
                err = -ENOMEM;
                goto put_padctl;
        }