]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec: cec_transmit_attempt_done: ignore CEC_TX_STATUS_MAX_RETRIES
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 12 Jul 2017 20:07:08 +0000 (17:07 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 09:46:43 +0000 (05:46 -0400)
commitbec2856c2cba7967fd25bad6af2cf15cbf6c8f42
tree0263b1e597a3004a91e8f115242d9cce0b859efc
parentd46c478d974fa1475ae360104c89780e6b2d7e85
media: cec: cec_transmit_attempt_done: ignore CEC_TX_STATUS_MAX_RETRIES

The switch in cec_transmit_attempt_done() should ignore the
CEC_TX_STATUS_MAX_RETRIES status bit.

Calling this function with e.g. CEC_TX_STATUS_NACK | CEC_TX_STATUS_MAX_RETRIES
is perfectly legal and should not trigger the WARN(1).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c