ALSA: Fix Trivial Warnining in sound/pci/cmipci.c
authorSubrata Modak <[email protected]>
Mon, 27 Apr 2009 11:12:37 +0000 (16:42 +0530)
committerTakashi Iwai <[email protected]>
Mon, 27 Apr 2009 11:53:13 +0000 (13:53 +0200)
Fixed the compile warning below by initializatin iomidi variable properly.
  sound/pci/cmipci.c: In function ‘snd_cmipci_probe’:
  sound/pci/cmipci.c:3017: warning: ‘iomidi’ may be used uninitialized in this function

Signed-off-by: Subrata Modak <[email protected]>
Cc: linux-pci <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Sachin P Sant <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/cmipci.c

index c7899c32aba19d08b945da3e4c4e510d46fa6a8f..449fe02f666e19288936295ebc8b5cc76c9d154b 100644 (file)
@@ -3014,7 +3014,7 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc
                .dev_free =     snd_cmipci_dev_free,
        };
        unsigned int val;
-       long iomidi;
+       long iomidi = 0;
        int integrated_midi = 0;
        char modelstr[16];
        int pcm_index, pcm_spdif_index;