diff options
-rw-r--r-- | drivers/media/video/meye.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c index cdaff2fdf394..102a5b9cfd12 100644 --- a/drivers/media/video/meye.c +++ b/drivers/media/video/meye.c | |||
@@ -1779,6 +1779,7 @@ static int __devinit meye_probe(struct pci_dev *pcidev, | |||
1779 | goto outnotdev; | 1779 | goto outnotdev; |
1780 | } | 1780 | } |
1781 | 1781 | ||
1782 | ret = -ENOMEM; | ||
1782 | meye.mchip_dev = pcidev; | 1783 | meye.mchip_dev = pcidev; |
1783 | meye.video_dev = video_device_alloc(); | 1784 | meye.video_dev = video_device_alloc(); |
1784 | if (!meye.video_dev) { | 1785 | if (!meye.video_dev) { |
@@ -1786,7 +1787,6 @@ static int __devinit meye_probe(struct pci_dev *pcidev, | |||
1786 | goto outnotdev; | 1787 | goto outnotdev; |
1787 | } | 1788 | } |
1788 | 1789 | ||
1789 | ret = -ENOMEM; | ||
1790 | meye.grab_temp = vmalloc(MCHIP_NB_PAGES_MJPEG * PAGE_SIZE); | 1790 | meye.grab_temp = vmalloc(MCHIP_NB_PAGES_MJPEG * PAGE_SIZE); |
1791 | if (!meye.grab_temp) { | 1791 | if (!meye.grab_temp) { |
1792 | printk(KERN_ERR "meye: grab buffer allocation failed\n"); | 1792 | printk(KERN_ERR "meye: grab buffer allocation failed\n"); |