]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: cec: cec-adap.c: improve CEC_MSG_FL_REPLY_VENDOR_ID check
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 8 Aug 2024 09:09:18 +0000 (11:09 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 8 Aug 2024 13:24:03 +0000 (15:24 +0200)
commit31aaa7d95e09892c81df0d7c49ae85640fa4e202
tree7a7ce0c0f8442158f43974b68968f1b53f3598ad
parent599f6899051cb70c4e0aa9fd591b9ee220cb6f14
media: cec: cec-adap.c: improve CEC_MSG_FL_REPLY_VENDOR_ID check

The new CEC_MSG_FL_REPLY_VENDOR_ID flag only makes sense in combination
with CEC_MSG_VENDOR_COMMAND_WITH_ID. So rather than reporting an error
if that flag is set with another command, just clear the flag instead.

Only keep the message length check, since otherwise the flag would not
make sense.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/cec/core/cec-adap.c