diff mbox series

cec-pin: drop unused 'enabled' field from struct cec_pin

Message ID e433479f-42e8-bbf1-d661-d8895fc30ceb@xs4all.nl (mailing list archive)
State New, archived
Headers show
Series cec-pin: drop unused 'enabled' field from struct cec_pin | expand

Commit Message

Hans Verkuil Dec. 1, 2021, 12:28 p.m. UTC
This field is only set, but never used. Drop it.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
 drivers/media/cec/core/cec-pin-priv.h | 1 -
 drivers/media/cec/core/cec-pin.c      | 1 -
 2 files changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/media/cec/core/cec-pin-priv.h b/drivers/media/cec/core/cec-pin-priv.h
index fb101f15865c..7bad5a0b7cb7 100644
--- a/drivers/media/cec/core/cec-pin-priv.h
+++ b/drivers/media/cec/core/cec-pin-priv.h
@@ -170,7 +170,6 @@  struct cec_pin {
 	ktime_t				ts;
 	unsigned int			wait_usecs;
 	u16				la_mask;
-	bool				enabled;
 	bool				monitor_all;
 	bool				rx_eom;
 	bool				enable_irq_failed;
diff --git a/drivers/media/cec/core/cec-pin.c b/drivers/media/cec/core/cec-pin.c
index 178edc85dc92..21f0f749713e 100644
--- a/drivers/media/cec/core/cec-pin.c
+++ b/drivers/media/cec/core/cec-pin.c
@@ -1125,7 +1125,6 @@  static int cec_pin_adap_enable(struct cec_adapter *adap, bool enable)
 {
 	struct cec_pin *pin = adap->pin;

-	pin->enabled = enable;
 	if (enable) {
 		atomic_set(&pin->work_pin_num_events, 0);
 		pin->work_pin_events_rd = pin->work_pin_events_wr = 0;