diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-17 22:56:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:57 -0500 |
commit | 5ae094cea1b4f3715ee6ea4f49d0b36d564f90e7 (patch) | |
tree | 1cdf53ec82ba82127508aa5a710c9a5b78bd4f9f /drivers/media/video/cx231xx | |
parent | 5ad1a55542dd69d2c6aa7db5ca79073d693bbfed (diff) |
[media] cx231xx: stray unlock on error path
The lock isn't held here and doesn't need to be unlocked. The code has
been like this since the driver was merged.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-cards.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index 2b6101763355..61756502c085 100644 --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c | |||
@@ -784,7 +784,7 @@ static int cx231xx_init_dev(struct cx231xx **devhandle, struct usb_device *udev, | |||
784 | retval = cx231xx_register_analog_devices(dev); | 784 | retval = cx231xx_register_analog_devices(dev); |
785 | if (retval < 0) { | 785 | if (retval < 0) { |
786 | cx231xx_release_resources(dev); | 786 | cx231xx_release_resources(dev); |
787 | goto fail_reg_devices; | 787 | return retval; |
788 | } | 788 | } |
789 | 789 | ||
790 | cx231xx_ir_init(dev); | 790 | cx231xx_ir_init(dev); |
@@ -792,10 +792,6 @@ static int cx231xx_init_dev(struct cx231xx **devhandle, struct usb_device *udev, | |||
792 | cx231xx_init_extension(dev); | 792 | cx231xx_init_extension(dev); |
793 | 793 | ||
794 | return 0; | 794 | return 0; |
795 | |||
796 | fail_reg_devices: | ||
797 | mutex_unlock(&dev->lock); | ||
798 | return retval; | ||
799 | } | 795 | } |
800 | 796 | ||
801 | #if defined(CONFIG_MODULES) && defined(MODULE) | 797 | #if defined(CONFIG_MODULES) && defined(MODULE) |