Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9723dbb0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5f6e3c8e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;