浏览代码

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>
Wolfram Sang 9 年之前
父节点
当前提交
a35234b2a6
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/usb/host/xhci-tegra.c

+ 0 - 1
drivers/usb/host/xhci-tegra.c

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