Skip to content

Commit

Permalink
usb: renesas_usbhs: add error reason for usbhs_pipe_malloc
Browse files Browse the repository at this point in the history
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Apr 30, 2011
1 parent af32fe5 commit f429ea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/renesas_usbhs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,11 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
u16 pipecfg, pipebuf, pipemaxp;

pipe = usbhsp_get_pipe(priv, usb_endpoint_type(desc));
if (!pipe)
if (!pipe) {
dev_err(dev, "can't get pipe (%s)\n",
usbhsp_pipe_name[usb_endpoint_type(desc)]);
return NULL;
}

usbhs_fifo_disable(pipe);

Expand Down

0 comments on commit f429ea3

Please sign in to comment.