[media] media: rc: nuvoton: remove unneeded check in nvt_get_rx_ir_data
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 24 Jun 2016 05:39:55 +0000 (02:39 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 20:19:07 +0000 (17:19 -0300)
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>
drivers/media/rc/nuvoton-cir.c

index 67db965ae8e5b0cdc5a1a08860963f8fe582af2e..36abfc2800f03d88faf2bb195cdf247a6d4207ec 100644 (file)
@@ -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);
 
This page took 0.025881 seconds and 5 git commands to generate.