summaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2010-12-27 15:09:53 +0100
committerJiri Kosina <jkosina@suse.cz>2010-12-27 15:09:53 +0100
commitc521dde6a690721a1db17924ef5683864ff58fdb (patch)
tree8b77e12bcd4412d1da515a11e5ccbb7f06d90d34 /sound/pci/ca0106
parent43b210139a3cb09d49a18f0dc9bed3674c55f235 (diff)
downloadlinux-c521dde6a690721a1db17924ef5683864ff58fdb.tar.gz
linux-c521dde6a690721a1db17924ef5683864ff58fdb.tar.bz2
linux-c521dde6a690721a1db17924ef5683864ff58fdb.zip
sound, ca0106: Fix assignment to 'channel'.
The assignment to the local variable 'channel' in snd_ca0106_pcm_pointer_capture() is a little crazy. Order of assignment is undefined. This fixes it. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'sound/pci/ca0106')
-rw-r--r--sound/pci/ca0106/ca0106_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
index d2d12c08f937..01b49388fafd 100644
--- a/sound/pci/ca0106/ca0106_main.c
+++ b/sound/pci/ca0106/ca0106_main.c
@@ -1082,7 +1082,7 @@ snd_ca0106_pcm_pointer_capture(struct snd_pcm_substream *substream)
struct snd_pcm_runtime *runtime = substream->runtime;
struct snd_ca0106_pcm *epcm = runtime->private_data;
snd_pcm_uframes_t ptr, ptr1, ptr2 = 0;
- int channel = channel=epcm->channel_id;
+ int channel = epcm->channel_id;
if (!epcm->running)
return 0;