Commit cb73db7d authored by Wolfram Sang's avatar Wolfram Sang Committed by Felipe Balbi

usb: renesas_usbhs: mod_gadget: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent c4d6618e
...@@ -335,7 +335,6 @@ static void __usbhsg_recip_send_status(struct usbhsg_gpriv *gpriv, ...@@ -335,7 +335,6 @@ static void __usbhsg_recip_send_status(struct usbhsg_gpriv *gpriv,
buf = kmalloc(sizeof(*buf), GFP_ATOMIC); buf = kmalloc(sizeof(*buf), GFP_ATOMIC);
if (!buf) { if (!buf) {
usb_ep_free_request(&dcp->ep, req); usb_ep_free_request(&dcp->ep, req);
dev_err(dev, "recip data allocation fail\n");
return; return;
} }
...@@ -1062,14 +1061,11 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv) ...@@ -1062,14 +1061,11 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
int ret; int ret;
gpriv = kzalloc(sizeof(struct usbhsg_gpriv), GFP_KERNEL); gpriv = kzalloc(sizeof(struct usbhsg_gpriv), GFP_KERNEL);
if (!gpriv) { if (!gpriv)
dev_err(dev, "Could not allocate gadget priv\n");
return -ENOMEM; return -ENOMEM;
}
uep = kzalloc(sizeof(struct usbhsg_uep) * pipe_size, GFP_KERNEL); uep = kzalloc(sizeof(struct usbhsg_uep) * pipe_size, GFP_KERNEL);
if (!uep) { if (!uep) {
dev_err(dev, "Could not allocate ep\n");
ret = -ENOMEM; ret = -ENOMEM;
goto usbhs_mod_gadget_probe_err_gpriv; goto usbhs_mod_gadget_probe_err_gpriv;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment