Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342589
b: refs/heads/master
c: 190006f
h: refs/heads/master
i:
  342587: 3c74561
v: v3
  • Loading branch information
Joe Perches authored and Takashi Iwai committed Nov 17, 2012
1 parent 8495b93 commit 1a37c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 701ef3205eb33bce4ba97b96f6f04a5ae29cd7b8
refs/heads/master: 190006f9d6594ee9ef4775ec09edda7df76fc8f1
7 changes: 1 addition & 6 deletions trunk/sound/usb/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,15 +485,10 @@ struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip,
static int wait_clear_urbs(struct snd_usb_endpoint *ep)
{
unsigned long end_time = jiffies + msecs_to_jiffies(1000);
unsigned int i;
int alive;

do {
alive = 0;
for (i = 0; i < ep->nurbs; i++)
if (test_bit(i, &ep->active_mask))
alive++;

alive = bitmap_weight(&ep->active_mask, ep->nurbs);
if (!alive)
break;

Expand Down

0 comments on commit 1a37c1c

Please sign in to comment.