diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-28 05:58:18 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:17 -0400 |
commit | 608b10bad3563e2349393136ce421d9f67329170 (patch) | |
tree | 4e30d05f1ac95083f6152154a26149118ba64f90 /sound/pci/ac97 | |
parent | 44977b719f7425ddb1cb67d647a4f588a9718163 (diff) |
[ALSA] sound: ac97_pcm.c fix shadowed variable warning
err is always assigned before it is used, no need to declare another
inside the if statement.
sound/pci/ac97/ac97_pcm.c:577:7: warning: symbol 'err' shadows an earlier one
sound/pci/ac97/ac97_pcm.c:572:6: originally declared here
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97')
-rw-r--r-- | sound/pci/ac97/ac97_pcm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/ac97/ac97_pcm.c b/sound/pci/ac97/ac97_pcm.c index 3674f35c4a79..48cbda9378c5 100644 --- a/sound/pci/ac97/ac97_pcm.c +++ b/sound/pci/ac97/ac97_pcm.c | |||
@@ -574,7 +574,6 @@ int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, | |||
574 | r = rate > 48000; | 574 | r = rate > 48000; |
575 | bus = pcm->bus; | 575 | bus = pcm->bus; |
576 | if (cfg == AC97_PCM_CFG_SPDIF) { | 576 | if (cfg == AC97_PCM_CFG_SPDIF) { |
577 | int err; | ||
578 | for (cidx = 0; cidx < 4; cidx++) | 577 | for (cidx = 0; cidx < 4; cidx++) |
579 | if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { | 578 | if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { |
580 | err = set_spdif_rate(bus->codec[cidx], rate); | 579 | err = set_spdif_rate(bus->codec[cidx], rate); |