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>
This commit is contained in:
parent
93b6cb4504
commit
c34515f875
@ -804,10 +804,8 @@ int usbhs_pipe_probe(struct usbhs_priv *priv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
info->pipe = kzalloc(sizeof(struct usbhs_pipe) * pipe_size, GFP_KERNEL);
|
info->pipe = kzalloc(sizeof(struct usbhs_pipe) * pipe_size, GFP_KERNEL);
|
||||||
if (!info->pipe) {
|
if (!info->pipe)
|
||||||
dev_err(dev, "Could not allocate pipe\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
info->size = pipe_size;
|
info->size = pipe_size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user