Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c521dde6 authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 43b21013
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;