]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: ite-cir: in_use is not needed
authorSean Young <sean@mess.org>
Mon, 22 Feb 2021 13:46:42 +0000 (14:46 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:41 +0000 (11:59 +0100)
commit0ec694d6718a9fab0f49a280557feb257c9d7843
treeaefa95f94497c1a4f16d47fbf53ea02a442f1321
parent28c7afb07ccfc0a939bb06ac1e7afe669901c65a
media: ite-cir: in_use is not needed

The in_use variable is set to true when a lirc file is opened, and ir
transmit can only be done by writing to a lirc file descriptor. As a
result when in_use is read, it is always true, so we might as well remove
it.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/ite-cir.c
drivers/media/rc/ite-cir.h