[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1251233977-5819-1-git-send-email-jirislaby@gmail.com>
Date: Tue, 25 Aug 2009 22:59:34 +0200
From: Jiri Slaby <jirislaby@...il.com>
To: tiwai@...e.de
Cc: perex@...ex.cz, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, Jiri Slaby <jirislaby@...il.com>
Subject: [PATCH 1/4] SOUND: atiixp, use uninitialized_var(chip)
To avoid wrong compiler warnings, use unitialized_var(chip) in
snd_atiixp_probe's from atiixp and atiixp_modem drivers.
'chip' is unused when unset due to retval being nonzero.
Signed-off-by: Jiri Slaby <jirislaby@...il.com>
Cc: Takashi Iwai <tiwai@...e.de>
Cc: Jaroslav Kysela <perex@...ex.cz>
---
sound/pci/atiixp.c | 2 +-
sound/pci/atiixp_modem.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c
index d6752df..436ffea 100644
--- a/sound/pci/atiixp.c
+++ b/sound/pci/atiixp.c
@@ -1648,7 +1648,7 @@ static int __devinit snd_atiixp_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
struct snd_card *card;
- struct atiixp *chip;
+ struct atiixp *uninitialized_var(chip);
int err;
err = snd_card_create(index, id, THIS_MODULE, 0, &card);
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c
index e7e147b..b6191f2 100644
--- a/sound/pci/atiixp_modem.c
+++ b/sound/pci/atiixp_modem.c
@@ -1285,7 +1285,7 @@ static int __devinit snd_atiixp_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
struct snd_card *card;
- struct atiixp_modem *chip;
+ struct atiixp_modem *uninitialized_var(chip);
int err;
err = snd_card_create(index, id, THIS_MODULE, 0, &card);
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists