aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2018-11-14 14:25:53 +0100
committerHans Verkuil <hansverk@cisco.com>2018-11-14 16:07:47 +0100
commitfb248101254782a3939c40eaaa7e347260b27b77 (patch)
tree56d512258261f2fbd1d9d8f40e005ed7d32b36c6
parent3de3bb6f31711589aac607819ac13f07926674ee (diff)
pulse8-cec: return 0 when invalidating the logical addressbr-v4.21c
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>
-rw-r--r--drivers/media/usb/pulse8-cec/pulse8-cec.c2
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 365c78b748dd..b085b14f3f87 100644
--- a/drivers/media/usb/pulse8-cec/pulse8-cec.c
+++ b/drivers/media/usb/pulse8-cec/pulse8-cec.c
@@ -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,

Privacy Policy