Skip to contentSkip to conversation

media: rc: nuvoton: remove unneeded check in nvt_get_rx_ir_data

PATCH New Heiner Kallweit 1 participant 1 message Jun 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/9 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.

---
 drivers/media/rc/nuvoton-cir.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/media/rc/nuvoton-cir.c +0 -3
index 180f589..7a6f6c4 100644
@@ -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);
 
Signature · 1 line
2.9.0