Skip to content

Commit

Permalink
[media] nuvoton-cir: in_use isn't actually in use, remove it
Browse files Browse the repository at this point in the history
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Jun 11, 2011
1 parent 0ae9025 commit 589e116
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/media/rc/nuvoton-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,6 @@ static int nvt_open(struct rc_dev *dev)
unsigned long flags;

spin_lock_irqsave(&nvt->nvt_lock, flags);
nvt->in_use = true;
nvt_enable_cir(nvt);
spin_unlock_irqrestore(&nvt->nvt_lock, flags);

Expand All @@ -1004,7 +1003,6 @@ static void nvt_close(struct rc_dev *dev)
unsigned long flags;

spin_lock_irqsave(&nvt->nvt_lock, flags);
nvt->in_use = false;
nvt_disable_cir(nvt);
spin_unlock_irqrestore(&nvt->nvt_lock, flags);
}
Expand Down
1 change: 0 additions & 1 deletion drivers/media/rc/nuvoton-cir.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ struct nvt_dev {
struct ir_raw_event rawir;

spinlock_t nvt_lock;
bool in_use;

/* for rx */
u8 buf[RX_BUF_LEN];
Expand Down

0 comments on commit 589e116

Please sign in to comment.