Skip to content

Commit

Permalink
[ALSA] Dreamcast AICA sound - Get rid of annoying compiler warning
Browse files Browse the repository at this point in the history
This patch supresses an annoying compiler warning that the variable
err may be used uninitialised.
Signed-off by: Adrian McMenamin <[email protected]>

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
tiwai authored and perexg committed Jan 31, 2008
1 parent 54720a2 commit ceac4bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/sh/aica.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ceac4bf

Please sign in to comment.