diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-11-14 16:25:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-13 10:51:38 +0300 |
commit | 137ab853ad89f0eb58d437da1a6b1be9e9ce6d74 (patch) | |
tree | 3ec9d8e088585d6088386de853bef2a4bd0360ed /drivers/media | |
parent | d9e046de6e12f89641408df5c6892e271ab2fce6 (diff) | |
download | linux-137ab853ad89f0eb58d437da1a6b1be9e9ce6d74.tar.xz |
media: pulse8-cec: return 0 when invalidating the logical address
[ Upstream commit 2e84eb9affac43eeaf834992888b72426a8cd442 ]
Return 0 when invalidating the logical address. The cec core produces
a warning for drivers that do this.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Torbjorn Jansson <torbjorn.jansson@mbox200.swipnet.se>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/pulse8-cec/pulse8-cec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pulse8-cec/pulse8-cec.c b/drivers/media/usb/pulse8-cec/pulse8-cec.c index 350635826aae..6e3bdd71e273 100644 --- a/drivers/media/usb/pulse8-cec/pulse8-cec.c +++ b/drivers/media/usb/pulse8-cec/pulse8-cec.c @@ -585,7 +585,7 @@ unlock: else pulse8->config_pending = true; mutex_unlock(&pulse8->config_lock); - return err; + return log_addr == CEC_LOG_ADDR_INVALID ? 0 : err; } static int pulse8_cec_adap_transmit(struct cec_adapter *adap, u8 attempts, |