]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: streamzap: remove unnecessary ir_raw_event_reset and handle
authorSean Young <sean@mess.org>
Sun, 5 Dec 2021 17:06:30 +0000 (18:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:41:10 +0000 (07:41 +0200)
[ Upstream commit 4bed9306050497f49cbe77b842f0d812f4f27593 ]

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>
Stable-dep-of: f656cfbc7a29 ("media: streamzap: fix race between device disconnection and urb callback")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/rc/streamzap.c

index b6bd3cbec7c7c2bf52ef0756f9d51a7235accb5b..cd4bb605a76146957ff995daac4c4bf3ee984bcd 100644 (file)
@@ -215,8 +215,6 @@ static void sz_process_ir_data(struct streamzap_ir *sz, int len)
                                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]);
                        }