Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289592
b: refs/heads/master
c: 1435db4
h: refs/heads/master
v: v3
  • Loading branch information
Cyril Roelandt authored and Felipe Balbi committed Feb 27, 2012
1 parent 2c3119e commit a1478c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 5647a149e2b9260530a11c8494b529de56e226ab
refs/heads/master: 1435db486c131b4b76d8e2a261ae6292ffc3f7ca
6 changes: 3 additions & 3 deletions trunk/drivers/usb/gadget/amd5536udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2409,9 +2409,9 @@ static irqreturn_t udc_data_in_isr(struct udc *dev, int ep_ix)
/* write fifo */
udc_txfifo_write(ep, &req->req);
len = req->req.length - req->req.actual;
if (len > ep->ep.maxpacket)
len = ep->ep.maxpacket;
req->req.actual += len;
if (len > ep->ep.maxpacket)
len = ep->ep.maxpacket;
req->req.actual += len;
if (req->req.actual == req->req.length
|| (len != ep->ep.maxpacket)) {
/* complete req */
Expand Down

0 comments on commit a1478c7

Please sign in to comment.