OSDN Git Service

media: cec-pin: drop unused 'enabled' field from struct cec_pin
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 1 Dec 2021 12:28:55 +0000 (13:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 10:29:56 +0000 (11:29 +0100)
This field is only set, but never used. Drop it.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/cec/core/cec-pin-priv.h
drivers/media/cec/core/cec-pin.c

index fb101f1..7bad5a0 100644 (file)
@@ -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;
index a60b6f0..2b6459d 100644 (file)
@@ -1111,7 +1111,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;