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

Commit 5c769a68 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[media] lirc_dev: stray unlock in lirc_dev_fop_poll()



We shouldn't unlock here.  I think this was a cut and paste error.

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 635f76b2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -522,10 +522,8 @@ unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait)

	dev_dbg(ir->d.dev, LOGHEAD "poll called\n", ir->d.name, ir->d.minor);

	if (!ir->attached) {
		mutex_unlock(&ir->irctl_lock);
	if (!ir->attached)
		return POLLERR;
	}

	poll_wait(file, &ir->buf->wait_poll, wait);