Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248748
b: refs/heads/master
c: 45e13e6
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Apr 30, 2011
1 parent fbc08c0 commit 1ab650a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0c25c20502e0c4a467f5d7e27b2a599cfe57abe
refs/heads/master: 45e13e6e0aa954af2d4779a07262f4c12d6f032f
14 changes: 4 additions & 10 deletions trunk/drivers/usb/renesas_usbhs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,7 @@ static int usbhsp_fifo_select(struct usbhs_pipe *pipe, int write)

int usbhs_fifo_prepare_write(struct usbhs_pipe *pipe)
{
int ret;

ret = usbhsp_fifo_select(pipe, 1);
if (ret < 0)
return ret;

usbhsp_fifo_clear(pipe);

return ret;
return usbhsp_fifo_select(pipe, 1);
}

int usbhs_fifo_write(struct usbhs_pipe *pipe, u8 *buf, int len)
Expand All @@ -392,7 +384,7 @@ int usbhs_fifo_write(struct usbhs_pipe *pipe, u8 *buf, int len)
if (ret < 0)
return ret;

ret = usbhs_fifo_prepare_write(pipe);
ret = usbhsp_fifo_select(pipe, 1);
if (ret < 0)
return ret;

Expand Down Expand Up @@ -750,6 +742,8 @@ void usbhs_pipe_init(struct usbhs_priv *priv)

usbhsp_flags_init(pipe);
pipe->mod_private = NULL;

usbhsp_fifo_clear(pipe);
}
}

Expand Down

0 comments on commit 1ab650a

Please sign in to comment.