diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-25 13:39:30 -0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-08-29 03:48:23 -0400 |
commit | 01da51981d0e80ef6ccc44e48a278f70a88f6187 (patch) | |
tree | 49233f797e7819a6afdfca07b785fa11a1c7b31a /drivers/usb | |
parent | 22184917ab61e97ce5f0025027d414ce33edc752 (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: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-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 | ||