Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235327
b: refs/heads/master
c: 04b31c7
h: refs/heads/master
i:
  235325: f4806a5
  235323: 1dbe146
  235319: dcd8884
  235311: 22cee55
  235295: f8f4199
  235263: 9cf0338
v: v3
  • Loading branch information
Akinobu Mita authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent f580668 commit cdbfeb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 5c8d61bfcc6396f80b884e0f23f08cbd8bf10778
refs/heads/master: 04b31c776f34d127b422da92899272a0b8cda21d
7 changes: 2 additions & 5 deletions trunk/drivers/usb/host/isp1362-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ static int claim_ptd_buffers(struct isp1362_ep_queue *epq,

static inline void release_ptd_buffers(struct isp1362_ep_queue *epq, struct isp1362_ep *ep)
{
int index = ep->ptd_index;
int last = ep->ptd_index + ep->num_ptds;

if (last > epq->buf_count)
Expand All @@ -236,10 +235,8 @@ static inline void release_ptd_buffers(struct isp1362_ep_queue *epq, struct isp1
epq->buf_map, epq->skip_map);
BUG_ON(last > epq->buf_count);

for (; index < last; index++) {
__clear_bit(index, &epq->buf_map);
__set_bit(index, &epq->skip_map);
}
bitmap_clear(&epq->buf_map, ep->ptd_index, ep->num_ptds);
bitmap_set(&epq->skip_map, ep->ptd_index, ep->num_ptds);
epq->buf_avail += ep->num_ptds;
epq->ptd_count--;

Expand Down

0 comments on commit cdbfeb6

Please sign in to comment.