summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-24 18:26:50 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-24 18:30:59 +0200
commit617e901a12adf8bc9b8d2c41db0eccc7debab8d0 (patch)
tree9ebd5eb6892fa7af171a28799f8c435553a728e0 /drivers/media
parent[media] tw5864: add missing HAS_DMA dependency (diff)
downloadlinux-617e901a12adf8bc9b8d2c41db0eccc7debab8d0.tar.xz
linux-617e901a12adf8bc9b8d2c41db0eccc7debab8d0.zip
[media] tw5864: remove double irq lock code
As warned by smatch: drivers/media/pci/tw5864/tw5864-core.c:160 tw5864_h264_isr() error: double lock 'irqsave:flags' drivers/media/pci/tw5864/tw5864-core.c:174 tw5864_h264_isr() error: double unlock 'irqsave:flags' Remove the IRQ duplicated lock. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/pci/tw5864/tw5864-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/pci/tw5864/tw5864-core.c b/drivers/media/pci/tw5864/tw5864-core.c
index 440cd7bb8d04..e3d884e963c0 100644
--- a/drivers/media/pci/tw5864/tw5864-core.c
+++ b/drivers/media/pci/tw5864/tw5864-core.c
@@ -157,12 +157,10 @@ static void tw5864_h264_isr(struct tw5864_dev *dev)
cur_frame = next_frame;
- spin_lock_irqsave(&input->slock, flags);
input->frame_seqno++;
input->frame_gop_seqno++;
if (input->frame_gop_seqno >= input->gop)
input->frame_gop_seqno = 0;
- spin_unlock_irqrestore(&input->slock, flags);
} else {
dev_err(&dev->pci->dev,
"Skipped frame on input %d because all buffers busy\n",