mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
usb: renesas_usbhs: mod_host: 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>
This commit is contained in:
parent
cb73db7d71
commit
22184917ab
1 changed files with 2 additions and 8 deletions
|
@ -166,14 +166,10 @@ static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv,
|
||||||
gfp_t mem_flags)
|
gfp_t mem_flags)
|
||||||
{
|
{
|
||||||
struct usbhsh_request *ureq;
|
struct usbhsh_request *ureq;
|
||||||
struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv);
|
|
||||||
struct device *dev = usbhs_priv_to_dev(priv);
|
|
||||||
|
|
||||||
ureq = kzalloc(sizeof(struct usbhsh_request), mem_flags);
|
ureq = kzalloc(sizeof(struct usbhsh_request), mem_flags);
|
||||||
if (!ureq) {
|
if (!ureq)
|
||||||
dev_err(dev, "ureq alloc fail\n");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
usbhs_pkt_init(&ureq->pkt);
|
usbhs_pkt_init(&ureq->pkt);
|
||||||
ureq->urb = urb;
|
ureq->urb = urb;
|
||||||
|
@ -388,10 +384,8 @@ static int usbhsh_endpoint_attach(struct usbhsh_hpriv *hpriv,
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
uep = kzalloc(sizeof(struct usbhsh_ep), mem_flags);
|
uep = kzalloc(sizeof(struct usbhsh_ep), mem_flags);
|
||||||
if (!uep) {
|
if (!uep)
|
||||||
dev_err(dev, "usbhsh_ep alloc fail\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
/******************** spin lock ********************/
|
/******************** spin lock ********************/
|
||||||
usbhs_lock(priv, flags);
|
usbhs_lock(priv, flags);
|
||||||
|
|
Loading…
Reference in a new issue