2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00

V4L/DVB: media/IR/imon: potential double unlock on error

If there is an error here we should unlock in the caller (which is
imon_init_intf1()).  We can remove this stray unlock.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Dan Carpenter 2010-05-04 08:36:34 -03:00 committed by Mauro Carvalho Chehab
parent 5f6e3c8e34
commit 9723dbb034

View File

@ -1776,7 +1776,6 @@ static struct input_dev *imon_init_touch(struct imon_context *ictx)
touch_register_failed:
input_free_device(ictx->touch);
mutex_unlock(&ictx->lock);
touch_alloc_failed:
return NULL;