From: Heiner Kallweit Date: Fri, 24 Jun 2016 05:39:55 +0000 (-0300) Subject: [media] media: rc: nuvoton: remove unneeded check in nvt_get_rx_ir_data X-Git-Tag: v4.8-rc1~152^2~125 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d1e3e574d545cf25b968fab36f6b53b6d3fea13a;p=uclinux-h8%2Flinux.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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);