Skip to content

Commit

Permalink
[media] cx231xx: stray unlock on error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 5ad1a55 commit 5ae094c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/media/video/cx231xx/cx231xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,18 +784,14 @@ static int cx231xx_init_dev(struct cx231xx **devhandle, struct usb_device *udev,
retval = cx231xx_register_analog_devices(dev);
if (retval < 0) {
cx231xx_release_resources(dev);
goto fail_reg_devices;
return retval;
}

cx231xx_ir_init(dev);

cx231xx_init_extension(dev);

return 0;

fail_reg_devices:
mutex_unlock(&dev->lock);
return retval;
}

#if defined(CONFIG_MODULES) && defined(MODULE)
Expand Down

0 comments on commit 5ae094c

Please sign in to comment.