diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-10-29 05:49:43 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:12 -0500 |
commit | ceac4bf34e14d9040d16b35fd97a92d6e951ccf4 (patch) | |
tree | 286d4f6f9218e15ac2274d4e7ffa09c490d76587 /sound/sh/aica.c | |
parent | 54720a2481e67e622d5ee40a5130fd45f5c57c14 (diff) |
[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: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/sh/aica.c')
-rw-r--r-- | sound/sh/aica.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/sh/aica.c b/sound/sh/aica.c index 88dc840152ce..8861d2f7796e 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, | |||
237 | struct snd_card_aica *dreamcastcard; | 237 | struct snd_card_aica *dreamcastcard; |
238 | struct snd_pcm_runtime *runtime; | 238 | struct snd_pcm_runtime *runtime; |
239 | unsigned long flags; | 239 | unsigned long flags; |
240 | err = 0; | ||
240 | dreamcastcard = substream->pcm->private_data; | 241 | dreamcastcard = substream->pcm->private_data; |
241 | period_offset = dreamcastcard->clicks; | 242 | period_offset = dreamcastcard->clicks; |
242 | period_offset %= (AICA_PERIOD_NUMBER / channels); | 243 | period_offset %= (AICA_PERIOD_NUMBER / channels); |