summaryrefslogtreecommitdiffstats
path: root/drivers/media/cec/core/cec-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-06-20 12:16:40 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-06-23 15:11:25 +0200
commit8dd65ed67e1679830dc8f94169d25ec9452da99d (patch)
treeb0b50a612028d1cd8d985721d7393bbf184d52a0 /drivers/media/cec/core/cec-core.c
parentb16c928c13d103c7c338ae9ff076345c82d819b3 (diff)
downloadlinux-8dd65ed67e1679830dc8f94169d25ec9452da99d.tar.bz2
media: cec: remove unused waitq and phys_addrs fields
The cec_adapter struct contained a waitq field that isn't used anywhere, so drop this. It also contained a phys_addrs array to store any reported physical addresses. However, this was never actually used, so this field is removed as well. The original idea was to let the core keep track of this information, but nothing was ever done with this. Should this be needed in the future then it is easy enough to resurrect this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/cec/core/cec-core.c')
-rw-r--r--drivers/media/cec/core/cec-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/cec/core/cec-core.c b/drivers/media/cec/core/cec-core.c
index 0c52e1bb3910..c599cd94dd62 100644
--- a/drivers/media/cec/core/cec-core.c
+++ b/drivers/media/cec/core/cec-core.c
@@ -265,7 +265,6 @@ struct cec_adapter *cec_allocate_adapter(const struct cec_adap_ops *ops,
adap->sequence = 0;
adap->ops = ops;
adap->priv = priv;
- memset(adap->phys_addrs, 0xff, sizeof(adap->phys_addrs));
mutex_init(&adap->lock);
INIT_LIST_HEAD(&adap->transmit_queue);
INIT_LIST_HEAD(&adap->wait_queue);