mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Dreamcast AICA sound - Get rid of annoying compiler warning
@ 2007-10-28 14:27 Adrian McMenamin
  2007-10-29  8:06 ` [alsa-devel] " Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian McMenamin @ 2007-10-28 14:27 UTC (permalink / raw)
  To: alsa-devel, linux-kernel; +Cc: linuxsh-dev

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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-29 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-28 14:27 [PATCH] Dreamcast AICA sound - Get rid of annoying compiler warning Adrian McMenamin
2007-10-29  8:06 ` [alsa-devel] " Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®