diff options
author | Wolfram Sang | 2016-08-25 19:39:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-08-30 19:17:38 +0200 |
commit | 906f5dc99c93f564f1a17b6f908701efd7e90baa (patch) | |
tree | 1af3a83f4da9fc7f5a399922f722ed2fa33261a0 | |
parent | 0c2bc5c2cb267c41f073132d1817df917ab8ba47 (diff) |
usb: musb: am35x: 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>
-rw-r--r-- | drivers/usb/musb/am35x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index c41fe588d14d..c14577dbedf7 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c @@ -474,10 +474,8 @@ static int am35x_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; - } phy_clk = clk_get(&pdev->dev, "fck"); if (IS_ERR(phy_clk)) { |