]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] Dreamcast AICA sound - Get rid of annoying compiler warning
authorTakashi Iwai <tiwai@suse.de>
Mon, 29 Oct 2007 09:49:43 +0000 (10:49 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:12 +0000 (17:29 +0100)
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: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/sh/aica.c

index 88dc840152ce9369f57956c2d43cde2ac0e936ab..8861d2f7796ee05776c75301cff5d9d1ec4875e1 100644 (file)
@@ -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);