提交 8880f2cb 编写于 作者: A Antti Palosaari 提交者: Mauro Carvalho Chehab

[media] airspy: remove unneeded spinlock irq flags initialization

There is no need to init flags before calling spin_lock_irqsave().
spin_lock_irqsave is a macro which stores value to 'flags'.
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 617123ae
...@@ -223,7 +223,7 @@ static int airspy_ctrl_msg(struct airspy *s, u8 request, u16 value, u16 index, ...@@ -223,7 +223,7 @@ static int airspy_ctrl_msg(struct airspy *s, u8 request, u16 value, u16 index,
/* Private functions */ /* Private functions */
static struct airspy_frame_buf *airspy_get_next_fill_buf(struct airspy *s) static struct airspy_frame_buf *airspy_get_next_fill_buf(struct airspy *s)
{ {
unsigned long flags = 0; unsigned long flags;
struct airspy_frame_buf *buf = NULL; struct airspy_frame_buf *buf = NULL;
spin_lock_irqsave(&s->queued_bufs_lock, flags); spin_lock_irqsave(&s->queued_bufs_lock, flags);
...@@ -446,7 +446,7 @@ static int airspy_alloc_urbs(struct airspy *s) ...@@ -446,7 +446,7 @@ static int airspy_alloc_urbs(struct airspy *s)
/* Must be called with vb_queue_lock hold */ /* Must be called with vb_queue_lock hold */
static void airspy_cleanup_queued_bufs(struct airspy *s) static void airspy_cleanup_queued_bufs(struct airspy *s)
{ {
unsigned long flags = 0; unsigned long flags;
dev_dbg(s->dev, "\n"); dev_dbg(s->dev, "\n");
...@@ -506,7 +506,7 @@ static void airspy_buf_queue(struct vb2_buffer *vb) ...@@ -506,7 +506,7 @@ static void airspy_buf_queue(struct vb2_buffer *vb)
struct airspy *s = vb2_get_drv_priv(vb->vb2_queue); struct airspy *s = vb2_get_drv_priv(vb->vb2_queue);
struct airspy_frame_buf *buf = struct airspy_frame_buf *buf =
container_of(vb, struct airspy_frame_buf, vb); container_of(vb, struct airspy_frame_buf, vb);
unsigned long flags = 0; unsigned long flags;
/* Check the device has not disconnected between prep and queuing */ /* Check the device has not disconnected between prep and queuing */
if (unlikely(!s->udev)) { if (unlikely(!s->udev)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册