mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 08:06:49 +07:00
[media] nuvoton-cir: in_use isn't actually in use, remove it
Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
0ae90252d0
commit
589e116062
@ -991,7 +991,6 @@ static int nvt_open(struct rc_dev *dev)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(&nvt->nvt_lock, flags);
|
spin_lock_irqsave(&nvt->nvt_lock, flags);
|
||||||
nvt->in_use = true;
|
|
||||||
nvt_enable_cir(nvt);
|
nvt_enable_cir(nvt);
|
||||||
spin_unlock_irqrestore(&nvt->nvt_lock, flags);
|
spin_unlock_irqrestore(&nvt->nvt_lock, flags);
|
||||||
|
|
||||||
@ -1004,7 +1003,6 @@ static void nvt_close(struct rc_dev *dev)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(&nvt->nvt_lock, flags);
|
spin_lock_irqsave(&nvt->nvt_lock, flags);
|
||||||
nvt->in_use = false;
|
|
||||||
nvt_disable_cir(nvt);
|
nvt_disable_cir(nvt);
|
||||||
spin_unlock_irqrestore(&nvt->nvt_lock, flags);
|
spin_unlock_irqrestore(&nvt->nvt_lock, flags);
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,6 @@ struct nvt_dev {
|
|||||||
struct ir_raw_event rawir;
|
struct ir_raw_event rawir;
|
||||||
|
|
||||||
spinlock_t nvt_lock;
|
spinlock_t nvt_lock;
|
||||||
bool in_use;
|
|
||||||
|
|
||||||
/* for rx */
|
/* for rx */
|
||||||
u8 buf[RX_BUF_LEN];
|
u8 buf[RX_BUF_LEN];
|
||||||
|
Loading…
Reference in New Issue
Block a user