OSDN Git Service

media: rc: nec decoder should not send both repeat and keycode
authorSean Young <sean@mess.org>
Sun, 1 Oct 2017 20:38:29 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:40:57 +0000 (08:40 +0000)
commitcfec97f26d299f64cb5dd94f5e391d74c9977486
tree790ceddfb66c38ca677ffa9c52a74029e177b5a2
parente82273a266d03aeb00f0d27762ca306abbf14e01
media: rc: nec decoder should not send both repeat and keycode

commit 829bbf268894d0866bb9dd2b1e430cfa5c5f0779 upstream.

When receiving an nec repeat, rc_repeat() is called and then rc_keydown()
with the last decoded scancode. That last call is redundant.

Fixes: 265a2988d202 ("media: rc-core: consistent use of rc_repeat()")

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/ir-nec-decoder.c