From: Wolfram Sang Date: Thu, 25 Aug 2016 17:39:27 +0000 (+0200) Subject: usb: musb: da8xx: don't print on ENOMEM X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92c0c4905b651e0c9938802cae0ab30583ead038;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git usb: musb: da8xx: don't print on ENOMEM All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index b03d3b867fca..3c4dd1658f28 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c @@ -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)) {