]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: renesas_usbhs: pipe: don't print on ENOMEM
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 25 Aug 2016 17:39:30 +0000 (19:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:17:39 +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/renesas_usbhs/pipe.c

index c238772b9e9e1a87bb2d43f6c2a85f95bef6e4e8..9396a8c14af80104e8841d98ca30d27ffb1fd88d 100644 (file)
@@ -804,10 +804,8 @@ int usbhs_pipe_probe(struct usbhs_priv *priv)
        }
 
        info->pipe = kzalloc(sizeof(struct usbhs_pipe) * pipe_size, GFP_KERNEL);
-       if (!info->pipe) {
-               dev_err(dev, "Could not allocate pipe\n");
+       if (!info->pipe)
                return -ENOMEM;
-       }
 
        info->size = pipe_size;