media: cec: core: remove length check of Timer Status
authorNini Song <nini.song@mediatek.com>
Thu, 25 Jan 2024 13:28:45 +0000 (21:28 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 5 Feb 2024 11:57:44 +0000 (12:57 +0100)
commitce5d241c3ad4568c12842168288993234345c0eb
tree824ad1036f6f68b3d533a6ae31b0c03aa4a287db
parent9801b5b28c6929139d6fceeee8d739cc67bb2739
media: cec: core: remove length check of Timer Status

The valid_la is used to check the length requirements,
including special cases of Timer Status. If the length is
shorter than 5, that means no Duration Available is returned,
the message will be forced to be invalid.

However, the description of Duration Available in the spec
is that this parameter may be returned when these cases, or
that it can be optionally return when these cases. The key
words in the spec description are flexible choices.

Remove the special length check of Timer Status to fit the
spec which is not compulsory about that.

Signed-off-by: Nini Song <nini.song@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/cec/core/cec-adap.c