summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/streamzap.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2021-12-05 18:06:30 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-12-14 15:09:13 +0100
commit4bed9306050497f49cbe77b842f0d812f4f27593 (patch)
tree6493e9edc48908d554e9735bdc639e9f4cc78a4e /drivers/media/rc/streamzap.c
parent8fede658e7ddb605bbd68ed38067ddb0af033db4 (diff)
downloadlinux-4bed9306050497f49cbe77b842f0d812f4f27593.tar.gz
linux-4bed9306050497f49cbe77b842f0d812f4f27593.tar.bz2
linux-4bed9306050497f49cbe77b842f0d812f4f27593.zip
media: streamzap: remove unnecessary ir_raw_event_reset and handle
There is no reason to have a reset after an IR timeout. Calling ir_raw_event_handle() twice for the same interrupt has no affect. Fixes: 56b0ec30c4bc ("[media] rc/streamzap: fix reporting response times") Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/rc/streamzap.c')
-rw-r--r--drivers/media/rc/streamzap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c
index 1cc5ebb85b6c..76f5c72501c4 100644
--- a/drivers/media/rc/streamzap.c
+++ b/drivers/media/rc/streamzap.c
@@ -244,8 +244,6 @@ static void streamzap_callback(struct urb *urb)
sz->idle = true;
if (sz->timeout_enabled)
sz_push(sz, rawir);
- ir_raw_event_handle(sz->rdev);
- ir_raw_event_reset(sz->rdev);
} else {
sz_push_full_space(sz, sz->buf_in[i]);
}