aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/rtl2832_sdr.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-08-24 22:37:57 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 15:42:36 -0400
commitabfc8d66d72ba183eb3b5d344fd1ec17233db8bb (patch)
treecea86c50ff0337657be4484837e4b2e50d3bf6a9 /drivers/media/dvb-frontends/rtl2832_sdr.c
parent13bd82d18ec29c7c81f2d42816f5a14095977c9e (diff)
[media] rtl2832_sdr: remove unneeded spinlock irq flags initialization
There is no need to init flags before calling spin_lock_irqsave(). spin_lock_irqsave is macro which stores value to 'flags' Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/rtl2832_sdr.c')
-rw-r--r--drivers/media/dvb-frontends/rtl2832_sdr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832_sdr.c b/drivers/media/dvb-frontends/rtl2832_sdr.c
index 5bcf48bb4a71..029189d8be88 100644
--- a/drivers/media/dvb-frontends/rtl2832_sdr.c
+++ b/drivers/media/dvb-frontends/rtl2832_sdr.c
@@ -329,7 +329,7 @@ static int rtl2832_sdr_rd_reg_mask(struct rtl2832_sdr_state *s, u16 reg,
329static struct rtl2832_sdr_frame_buf *rtl2832_sdr_get_next_fill_buf( 329static struct rtl2832_sdr_frame_buf *rtl2832_sdr_get_next_fill_buf(
330 struct rtl2832_sdr_state *s) 330 struct rtl2832_sdr_state *s)
331{ 331{
332 unsigned long flags = 0; 332 unsigned long flags;
333 struct rtl2832_sdr_frame_buf *buf = NULL; 333 struct rtl2832_sdr_frame_buf *buf = NULL;
334 334
335 spin_lock_irqsave(&s->queued_bufs_lock, flags); 335 spin_lock_irqsave(&s->queued_bufs_lock, flags);
@@ -570,7 +570,7 @@ static int rtl2832_sdr_alloc_urbs(struct rtl2832_sdr_state *s)
570/* Must be called with vb_queue_lock hold */ 570/* Must be called with vb_queue_lock hold */
571static void rtl2832_sdr_cleanup_queued_bufs(struct rtl2832_sdr_state *s) 571static void rtl2832_sdr_cleanup_queued_bufs(struct rtl2832_sdr_state *s)
572{ 572{
573 unsigned long flags = 0; 573 unsigned long flags;
574 574
575 dev_dbg(&s->udev->dev, "%s:\n", __func__); 575 dev_dbg(&s->udev->dev, "%s:\n", __func__);
576 576
@@ -659,7 +659,7 @@ static void rtl2832_sdr_buf_queue(struct vb2_buffer *vb)
659 struct rtl2832_sdr_state *s = vb2_get_drv_priv(vb->vb2_queue); 659 struct rtl2832_sdr_state *s = vb2_get_drv_priv(vb->vb2_queue);
660 struct rtl2832_sdr_frame_buf *buf = 660 struct rtl2832_sdr_frame_buf *buf =
661 container_of(vb, struct rtl2832_sdr_frame_buf, vb); 661 container_of(vb, struct rtl2832_sdr_frame_buf, vb);
662 unsigned long flags = 0; 662 unsigned long flags;
663 663
664 /* Check the device has not disconnected between prep and queuing */ 664 /* Check the device has not disconnected between prep and queuing */
665 if (!s->udev) { 665 if (!s->udev) {