diff options
author | Frederik Deweerdt <frederik.deweerdt@xprog.eu> | 2009-09-14 04:52:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 15:02:34 -0400 |
commit | c2f5e9d2bfa41cd4ba1c7dc49b32d6b6df6d195b (patch) | |
tree | a6810d0b492d0d6ff3f6f36f98f695c28a508584 /drivers | |
parent | e1769b3cf0670935d1988e65f758bf6f29c0e107 (diff) |
Staging: line6: ffzb returns an unsigned integer
find_first_zero_bit returns a positive value, use it accordingly.
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@xprog.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/line6/capture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/line6/capture.c b/drivers/staging/line6/capture.c index 8393e25a10b1..ea2060b4919d 100644 --- a/drivers/staging/line6/capture.c +++ b/drivers/staging/line6/capture.c | |||
@@ -26,7 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | static int submit_audio_in_urb(struct snd_pcm_substream *substream) | 27 | static int submit_audio_in_urb(struct snd_pcm_substream *substream) |
28 | { | 28 | { |
29 | int index; | 29 | unsigned int index; |
30 | unsigned long flags; | 30 | unsigned long flags; |
31 | struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); | 31 | struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); |
32 | int i, urb_size; | 32 | int i, urb_size; |
@@ -35,7 +35,7 @@ static int submit_audio_in_urb(struct snd_pcm_substream *substream) | |||
35 | spin_lock_irqsave(&line6pcm->lock_audio_in, flags); | 35 | spin_lock_irqsave(&line6pcm->lock_audio_in, flags); |
36 | index = find_first_zero_bit(&line6pcm->active_urb_in, LINE6_ISO_BUFFERS); | 36 | index = find_first_zero_bit(&line6pcm->active_urb_in, LINE6_ISO_BUFFERS); |
37 | 37 | ||
38 | if (index < 0 || index >= LINE6_ISO_BUFFERS) { | 38 | if (index >= LINE6_ISO_BUFFERS) { |
39 | spin_unlock_irqrestore(&line6pcm->lock_audio_in, flags); | 39 | spin_unlock_irqrestore(&line6pcm->lock_audio_in, flags); |
40 | dev_err(s2m(substream), "no free URB found\n"); | 40 | dev_err(s2m(substream), "no free URB found\n"); |
41 | return -EINVAL; | 41 | return -EINVAL; |