浏览代码

usb: phy: phy-mv-usb: 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>
Peter Chen 10 年之前
父节点
当前提交
aa10c7b00e
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/usb/phy/phy-mv-usb.c

+ 1 - 3
drivers/usb/phy/phy-mv-usb.c

@@ -686,10 +686,8 @@ static int mv_otg_probe(struct platform_device *pdev)
 	}
 	}
 
 
 	mvotg = devm_kzalloc(&pdev->dev, sizeof(*mvotg), GFP_KERNEL);
 	mvotg = devm_kzalloc(&pdev->dev, sizeof(*mvotg), GFP_KERNEL);
-	if (!mvotg) {
-		dev_err(&pdev->dev, "failed to allocate memory!\n");
+	if (!mvotg)
 		return -ENOMEM;
 		return -ENOMEM;
-	}
 
 
 	otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
 	otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
 	if (!otg)
 	if (!otg)