summaryrefslogtreecommitdiff
path: root/drivers/media/rc/nuvoton-cir.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-06-24 08:39:55 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-08 23:19:07 +0300
commitd1e3e574d545cf25b968fab36f6b53b6d3fea13a (patch)
treee4a3af5a5bb39208df44f7f1e7c49ab9c6f96dba /drivers/media/rc/nuvoton-cir.c
parent228942efdb88fd1cd90de85cf599171d5c0171ea (diff)
downloadlinux-d1e3e574d545cf25b968fab36f6b53b6d3fea13a.tar.xz
[media] media: rc: nuvoton: remove unneeded check in nvt_get_rx_ir_data
If the logical device is disabled then it can not generate interrupts. Therefore this check is not needed. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/nuvoton-cir.c')
-rw-r--r--drivers/media/rc/nuvoton-cir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c
index 67db965ae8e5..36abfc2800f0 100644
--- a/drivers/media/rc/nuvoton-cir.c
+++ b/drivers/media/rc/nuvoton-cir.c
@@ -806,9 +806,6 @@ static void nvt_get_rx_ir_data(struct nvt_dev *nvt)
/* Get count of how many bytes to read from RX FIFO */
fifocount = nvt_cir_reg_read(nvt, CIR_RXFCONT);
- /* if we get 0xff, probably means the logical dev is disabled */
- if (fifocount == 0xff)
- return;
nvt_dbg("attempting to fetch %u bytes from hw rx fifo", fifocount);