Commit ceac4bf3 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] Dreamcast AICA sound - Get rid of annoying compiler warning

This patch supresses an annoying compiler warning that the variable
err may be used uninitialised.
Signed-off by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 54720a24
...@@ -237,6 +237,7 @@ static int aica_dma_transfer(int channels, int buffer_size, ...@@ -237,6 +237,7 @@ static int aica_dma_transfer(int channels, int buffer_size,
struct snd_card_aica *dreamcastcard; struct snd_card_aica *dreamcastcard;
struct snd_pcm_runtime *runtime; struct snd_pcm_runtime *runtime;
unsigned long flags; unsigned long flags;
err = 0;
dreamcastcard = substream->pcm->private_data; dreamcastcard = substream->pcm->private_data;
period_offset = dreamcastcard->clicks; period_offset = dreamcastcard->clicks;
period_offset %= (AICA_PERIOD_NUMBER / channels); period_offset %= (AICA_PERIOD_NUMBER / channels);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment