2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 22:24:09 +08:00

usb: musb: da8xx: 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>
This commit is contained in:
Wolfram Sang 2016-08-25 19:39:27 +02:00 committed by Greg Kroah-Hartman
parent 906f5dc99c
commit 92c0c4905b

View File

@ -494,10 +494,8 @@ static int da8xx_probe(struct platform_device *pdev)
int ret = -ENOMEM;
glue = kzalloc(sizeof(*glue), GFP_KERNEL);
if (!glue) {
dev_err(&pdev->dev, "failed to allocate glue context\n");
if (!glue)
goto err0;
}
clk = clk_get(&pdev->dev, "usb20");
if (IS_ERR(clk)) {