From 135036f88c086f30dd749e95e964991013d189f3 Mon Sep 17 00:00:00 2001 From: Frederik Deweerdt Date: Mon, 14 Sep 2009 08:52:37 +0000 Subject: [PATCH] --- yaml --- r: 162569 b: refs/heads/master c: c2f5e9d2bfa41cd4ba1c7dc49b32d6b6df6d195b h: refs/heads/master i: 162567: 6984a6da982e209022e92aa58ed9bc8270136e90 v: v3 --- [refs] | 2 +- trunk/drivers/staging/line6/capture.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 421755cd279a..2a2031bedfad 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e1769b3cf0670935d1988e65f758bf6f29c0e107 +refs/heads/master: c2f5e9d2bfa41cd4ba1c7dc49b32d6b6df6d195b diff --git a/trunk/drivers/staging/line6/capture.c b/trunk/drivers/staging/line6/capture.c index 8393e25a10b1..ea2060b4919d 100644 --- a/trunk/drivers/staging/line6/capture.c +++ b/trunk/drivers/staging/line6/capture.c @@ -26,7 +26,7 @@ */ static int submit_audio_in_urb(struct snd_pcm_substream *substream) { - int index; + unsigned int index; unsigned long flags; struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); int i, urb_size; @@ -35,7 +35,7 @@ static int submit_audio_in_urb(struct snd_pcm_substream *substream) spin_lock_irqsave(&line6pcm->lock_audio_in, flags); index = find_first_zero_bit(&line6pcm->active_urb_in, LINE6_ISO_BUFFERS); - if (index < 0 || index >= LINE6_ISO_BUFFERS) { + if (index >= LINE6_ISO_BUFFERS) { spin_unlock_irqrestore(&line6pcm->lock_audio_in, flags); dev_err(s2m(substream), "no free URB found\n"); return -EINVAL;