diff options
Diffstat (limited to 'sound/usb/endpoint.c')
-rw-r--r-- | sound/usb/endpoint.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 34de6f2faf61..51a9aa372cc7 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c | |||
@@ -485,15 +485,10 @@ __exit_unlock: | |||
485 | static int wait_clear_urbs(struct snd_usb_endpoint *ep) | 485 | static int wait_clear_urbs(struct snd_usb_endpoint *ep) |
486 | { | 486 | { |
487 | unsigned long end_time = jiffies + msecs_to_jiffies(1000); | 487 | unsigned long end_time = jiffies + msecs_to_jiffies(1000); |
488 | unsigned int i; | ||
489 | int alive; | 488 | int alive; |
490 | 489 | ||
491 | do { | 490 | do { |
492 | alive = 0; | 491 | alive = bitmap_weight(&ep->active_mask, ep->nurbs); |
493 | for (i = 0; i < ep->nurbs; i++) | ||
494 | if (test_bit(i, &ep->active_mask)) | ||
495 | alive++; | ||
496 | |||
497 | if (!alive) | 492 | if (!alive) |
498 | break; | 493 | break; |
499 | 494 | ||