diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c index af16505bd2e0..3cdd136477e5 100644 --- a/drivers/media/video/cx23885/cx23885-core.c +++ b/drivers/media/video/cx23885/cx23885-core.c | |||
@@ -793,7 +793,7 @@ static int cx23885_dev_setup(struct cx23885_dev *dev) | |||
793 | dev->pci->subsystem_device); | 793 | dev->pci->subsystem_device); |
794 | 794 | ||
795 | cx23885_devcount--; | 795 | cx23885_devcount--; |
796 | goto fail_free; | 796 | return -ENODEV; |
797 | } | 797 | } |
798 | 798 | ||
799 | /* PCIe stuff */ | 799 | /* PCIe stuff */ |
@@ -835,10 +835,6 @@ static int cx23885_dev_setup(struct cx23885_dev *dev) | |||
835 | } | 835 | } |
836 | 836 | ||
837 | return 0; | 837 | return 0; |
838 | |||
839 | fail_free: | ||
840 | kfree(dev); | ||
841 | return -ENODEV; | ||
842 | } | 838 | } |
843 | 839 | ||
844 | void cx23885_dev_unregister(struct cx23885_dev *dev) | 840 | void cx23885_dev_unregister(struct cx23885_dev *dev) |