login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <alsa-devel@...>, <linux-kernel@...>
Cc: <linuxsh-dev@...>
Date: Sunday, October 28, 2007 - 10:27 am

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>


diff --git a/sound/sh/aica.c b/sound/sh/aica.c
index 88dc840..8861d2f 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);
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Dreamcast AICA sound - Get rid of annoying compiler ..., Adrian McMenamin, (Sun Oct 28, 10:27 am)
speck-geostationary