[media] lirc_dev: avoid double mutex unlock
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 27 Feb 2016 10:51:13 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 1 Mar 2016 15:04:48 +0000 (12:04 -0300)
commitb64e10f3dfbfb2fdc21013b6b265a5e48cbb0071
treec02a1e7a2806a28dda7a33cfefe70998da04b2ff
parentfe28f5de11da417056fc1df872e9e26ceb7eb2fe
[media] lirc_dev: avoid double mutex unlock

We can only unlock if mutex_lock() succeeds.

Fixes the following warning:
drivers/media/rc/lirc_dev.c:535 lirc_dev_fop_close() error: double unlock 'mutex:&lirc_dev_lock'

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/lirc_dev.c