aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/ir-mce_kbd-decoder.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-01-05 16:19:28 +0000
committerSean Young <sean@mess.org>2018-01-05 19:27:55 +0000
commit4a9f7630c4a4a01cce6b5b8f22c5f5fd6b3d0eed (patch)
tree5cae4f808ac3a395516b5dc8b079331b872a28e8 /drivers/media/rc/ir-mce_kbd-decoder.c
parent6dc84d93e557c787ae74a808d93a8493f85a7800 (diff)
media: rc: prev_ev is dead code, every call is a new edge
The raw kfifo should never contain successive pulse events or space events. If it did occur, The IR decoders would not be able to deal with this anyway. There is no need to check that a raw timing event is a transition: it always is. Signed-off-by: Sean Young <sean@mess.org>
Diffstat (limited to 'drivers/media/rc/ir-mce_kbd-decoder.c')
-rw-r--r--drivers/media/rc/ir-mce_kbd-decoder.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/rc/ir-mce_kbd-decoder.c b/drivers/media/rc/ir-mce_kbd-decoder.c
index 2c3df02e05ff..fb318bdd6193 100644
--- a/drivers/media/rc/ir-mce_kbd-decoder.c
+++ b/drivers/media/rc/ir-mce_kbd-decoder.c
@@ -262,9 +262,6 @@ again:
return 0;
case STATE_HEADER_BIT_END:
- if (!is_transition(&ev, &dev->raw->prev_ev))
- break;
-
decrease_duration(&ev, MCIR2_BIT_END);
if (data->count != MCIR2_HEADER_NBITS) {
@@ -301,9 +298,6 @@ again:
return 0;
case STATE_BODY_BIT_END:
- if (!is_transition(&ev, &dev->raw->prev_ev))
- break;
-
if (data->count == data->wanted_bits)
data->state = STATE_FINISHED;
else

Privacy Policy