diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 20:39:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 20:17:39 +0300 |
commit | c34515f87501fc1cb49ec1a104b9a69e4a263e80 (patch) | |
tree | 94c0b2ec6ea3ad3dc72804c51b4b0484939422c4 /drivers/usb/renesas_usbhs/pipe.c | |
parent | 93b6cb4504d90f8f5ed35e5b0c2b5726678cedd2 (diff) | |
download | linux-c34515f87501fc1cb49ec1a104b9a69e4a263e80.tar.xz |
usb: renesas_usbhs: pipe: 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/renesas_usbhs/pipe.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/pipe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c index c238772b9e9e..9396a8c14af8 100644 --- a/drivers/usb/renesas_usbhs/pipe.c +++ b/drivers/usb/renesas_usbhs/pipe.c @@ -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; |