summaryrefslogtreecommitdiff
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 20:39:30 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-29 10:48:23 +0300
commit01da51981d0e80ef6ccc44e48a278f70a88f6187 (patch)
tree49233f797e7819a6afdfca07b785fa11a1c7b31a /drivers/usb/renesas_usbhs
parent22184917ab61e97ce5f0025027d414ce33edc752 (diff)
downloadlinux-01da51981d0e80ef6ccc44e48a278f70a88f6187.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: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r--drivers/usb/renesas_usbhs/pipe.c4
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;