From: Takashi Iwai Date: Mon, 29 Oct 2007 09:49:43 +0000 (+0100) Subject: [ALSA] Dreamcast AICA sound - Get rid of annoying compiler warning X-Git-Tag: v2.6.25-rc1~1127^2~283 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceac4bf34e14d9040d16b35fd97a92d6e951ccf4;p=linux-2.6 [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 Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 88dc840152..8861d2f779 100644 --- a/sound/sh/aica.c +++ b/sound/sh/aica.c @@ -237,6 +237,7 @@ static int aica_dma_transfer(int channels, int buffer_size, struct snd_card_aica *dreamcastcard; struct snd_pcm_runtime *runtime; unsigned long flags; + err = 0; dreamcastcard = substream->pcm->private_data; period_offset = dreamcastcard->clicks; period_offset %= (AICA_PERIOD_NUMBER / channels);