提交 92c0c490 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

usb: musb: da8xx: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 906f5dc9
...@@ -494,10 +494,8 @@ static int da8xx_probe(struct platform_device *pdev) ...@@ -494,10 +494,8 @@ static int da8xx_probe(struct platform_device *pdev)
int ret = -ENOMEM; int ret = -ENOMEM;
glue = kzalloc(sizeof(*glue), GFP_KERNEL); glue = kzalloc(sizeof(*glue), GFP_KERNEL);
if (!glue) { if (!glue)
dev_err(&pdev->dev, "failed to allocate glue context\n");
goto err0; goto err0;
}
clk = clk_get(&pdev->dev, "usb20"); clk = clk_get(&pdev->dev, "usb20");
if (IS_ERR(clk)) { if (IS_ERR(clk)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册