[media] cx88-alsa: fix compiler warning
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 6 Mar 2011 12:31:00 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:03 +0000 (04:54 -0300)
drivers/media/video/cx88/cx88-alsa.c: In function 'cx88_audio_initdev':
drivers/media/video/cx88/cx88-alsa.c:881:20: warning: 'core' may be used uninitialized in this function

The compiler doesn't understand that snd_cx88_create fills in the core
pointer. So just initialize it to NULL.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-alsa.c

index a2d688ebed90ff978d96c96e0e83e1f994b66b47..423c1af8a782473d21d6bb6eccfe97d3be9effb0 100644 (file)
@@ -878,7 +878,7 @@ static int __devinit cx88_audio_initdev(struct pci_dev *pci,
 {
        struct snd_card  *card;
        snd_cx88_card_t  *chip;
-       struct cx88_core *core;
+       struct cx88_core *core = NULL;
        int              err;
 
        if (devno >= SNDRV_CARDS)