diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-alsa.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-alsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index c841914c0244..3170b8f72c68 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c | |||
@@ -676,6 +676,11 @@ static int __devinit snd_cx88_create(struct snd_card *card, | |||
676 | chip = (snd_cx88_card_t *) card->private_data; | 676 | chip = (snd_cx88_card_t *) card->private_data; |
677 | 677 | ||
678 | core = cx88_core_get(pci); | 678 | core = cx88_core_get(pci); |
679 | if (NULL == core) { | ||
680 | err = -EINVAL; | ||
681 | kfree (chip); | ||
682 | return err; | ||
683 | } | ||
679 | 684 | ||
680 | if (!pci_dma_supported(pci,0xffffffff)) { | 685 | if (!pci_dma_supported(pci,0xffffffff)) { |
681 | dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n",core->name); | 686 | dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n",core->name); |
@@ -692,11 +697,6 @@ static int __devinit snd_cx88_create(struct snd_card *card, | |||
692 | spin_lock_init(&chip->reg_lock); | 697 | spin_lock_init(&chip->reg_lock); |
693 | 698 | ||
694 | cx88_reset(core); | 699 | cx88_reset(core); |
695 | if (NULL == core) { | ||
696 | err = -EINVAL; | ||
697 | kfree (chip); | ||
698 | return err; | ||
699 | } | ||
700 | chip->core = core; | 700 | chip->core = core; |
701 | 701 | ||
702 | /* get irq */ | 702 | /* get irq */ |