This is an automatic generated email to let you know that the following patch 
were queued:

Subject: [media] media: rc: nuvoton: remove unneeded call to ir_raw_event_handle
Author:  Heiner Kallweit <hkallwe...@gmail.com>
Date:    Tue Aug 2 02:45:30 2016 -0300

ir_raw_event_handle is called anyway after the hw fifo content stored
in nvt->buf[] has been written to the kfifo. There is not really a
benefit in the potential additional call to ir_raw_event_handle
whilst nvt->buf[] is being processed.
Getting rid of this additional call allows to simplify the code.

Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com>

 drivers/media/rc/nuvoton-cir.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

---

diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c
index e4158a962c7a..fc462f6bd6bd 100644
--- a/drivers/media/rc/nuvoton-cir.c
+++ b/drivers/media/rc/nuvoton-cir.c
@@ -769,21 +769,11 @@ static void nvt_process_rx_ir_data(struct nvt_dev *nvt)
                        rawir.pulse ? "pulse" : "space", rawir.duration);
 
                ir_raw_event_store_with_filter(nvt->rdev, &rawir);
-
-               /*
-                * BUF_PULSE_BIT indicates end of IR data, BUF_REPEAT_BYTE
-                * indicates end of IR signal, but new data incoming. In both
-                * cases, it means we're ready to call ir_raw_event_handle
-                */
-               if ((sample == BUF_PULSE_BIT) && (i + 1 < nvt->pkts)) {
-                       nvt_dbg("Calling ir_raw_event_handle (signal end)\n");
-                       ir_raw_event_handle(nvt->rdev);
-               }
        }
 
        nvt->pkts = 0;
 
-       nvt_dbg("Calling ir_raw_event_handle (buffer empty)\n");
+       nvt_dbg("Calling ir_raw_event_handle\n");
        ir_raw_event_handle(nvt->rdev);
 
        nvt_dbg_verbose("%s done", __func__);

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to