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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 10:49:11 +0000 (05:49 -0500)
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>
drivers/media/usb/pulse8-cec/pulse8-cec.c

index 365c78b748dd5cb1e5b739a462a7e4df656738b7..b085b14f3f8778747eef3fb4a58c14edc66dc419 100644 (file)
@@ -586,7 +586,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,