diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:38 -0400 |
commit | 92c0c4905b651e0c9938802cae0ab30583ead038 (patch) | |
tree | 2fbf19874099c2b6def4045937afa08fbba04ca1 /drivers/usb | |
parent | 906f5dc99c93f564f1a17b6f908701efd7e90baa (diff) |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/da8xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) | |||
494 | int ret = -ENOMEM; | 494 | int ret = -ENOMEM; |
495 | 495 | ||
496 | glue = kzalloc(sizeof(*glue), GFP_KERNEL); | 496 | glue = kzalloc(sizeof(*glue), GFP_KERNEL); |
497 | if (!glue) { | 497 | if (!glue) |
498 | dev_err(&pdev->dev, "failed to allocate glue context\n"); | ||
499 | goto err0; | 498 | goto err0; |
500 | } | ||
501 | 499 | ||
502 | clk = clk_get(&pdev->dev, "usb20"); | 500 | clk = clk_get(&pdev->dev, "usb20"); |
503 | if (IS_ERR(clk)) { | 501 | if (IS_ERR(clk)) { |