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

index b03d3b867fca2f8b06f2340c3fffaf5c53a4da13..3c4dd1658f28dbb4eeeb401ed7939ecb6b7006d8 100644 (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)) {