summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 19:39:30 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-08-29 09:48:23 +0200
commit01da51981d0e80ef6ccc44e48a278f70a88f6187 (patch)
tree49233f797e7819a6afdfca07b785fa11a1c7b31a /drivers
parentusb: renesas_usbhs: mod_host: don't print on ENOMEM (diff)
downloadlinux-01da51981d0e80ef6ccc44e48a278f70a88f6187.tar.xz
linux-01da51981d0e80ef6ccc44e48a278f70a88f6187.zip
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')
-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;