diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 13:17:39 -0400 |
commit | c34515f87501fc1cb49ec1a104b9a69e4a263e80 (patch) | |
tree | 94c0b2ec6ea3ad3dc72804c51b4b0484939422c4 | |
parent | 93b6cb4504d90f8f5ed35e5b0c2b5726678cedd2 (diff) |
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>
-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) | |||
804 | } | 804 | } |
805 | 805 | ||
806 | info->pipe = kzalloc(sizeof(struct usbhs_pipe) * pipe_size, GFP_KERNEL); | 806 | info->pipe = kzalloc(sizeof(struct usbhs_pipe) * pipe_size, GFP_KERNEL); |
807 | if (!info->pipe) { | 807 | if (!info->pipe) |
808 | dev_err(dev, "Could not allocate pipe\n"); | ||
809 | return -ENOMEM; | 808 | return -ENOMEM; |
810 | } | ||
811 | 809 | ||
812 | info->size = pipe_size; | 810 | info->size = pipe_size; |
813 | 811 | ||