diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2011-03-06 07:31:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 03:54:03 -0400 |
commit | d6972cc8a35514a518ef9c9f608327851cd2e856 (patch) | |
tree | ed73c3a2e1869ee024b8515766b15329ff10c898 /drivers/media/video/cx88 | |
parent | cfa746b39c2db17f2fde301e347324ac89fc5ea9 (diff) |
[media] cx88-alsa: fix compiler warning
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>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index a2d688ebed90..423c1af8a782 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c | |||
@@ -878,7 +878,7 @@ static int __devinit cx88_audio_initdev(struct pci_dev *pci, | |||
878 | { | 878 | { |
879 | struct snd_card *card; | 879 | struct snd_card *card; |
880 | snd_cx88_card_t *chip; | 880 | snd_cx88_card_t *chip; |
881 | struct cx88_core *core; | 881 | struct cx88_core *core = NULL; |
882 | int err; | 882 | int err; |
883 | 883 | ||
884 | if (devno >= SNDRV_CARDS) | 884 | if (devno >= SNDRV_CARDS) |