]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
media: pulse8-cec: return 0 when invalidating the logical address
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 14 Nov 2018 13:25:53 +0000 (08:25 -0500)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:11 +0000 (14:22 -0300)
BugLink: https://bugs.launchpad.net/bugs/1857158
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/media/usb/pulse8-cec/pulse8-cec.c

index 50146f263d904618132b634a6d8fda319eb43f1e..12da631c0fda0437b8e477c9ec3a7f8e36b2997c 100644 (file)
@@ -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,