Skip to content

Commit

Permalink
usb: renesas_usbhs: pipe: don't print on ENOMEM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wolfram Sang authored and Felipe Balbi committed Aug 29, 2016
1 parent 2218491 commit 01da519
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/usb/renesas_usbhs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 01da519

Please sign in to comment.