[media] airspy: remove unneeded spinlock irq flags initialization
authorAntti Palosaari <crope@iki.fi>
Sun, 24 Aug 2014 22:27:43 +0000 (19:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 19:42:33 +0000 (16:42 -0300)
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: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/airspy/airspy.c

index de9fc52d376332ba6137dfc7a63676a96921e8da..994c9914ab9b37a5a300e40e694f3d66d9f60bba 100644 (file)
@@ -223,7 +223,7 @@ err:
 /* Private functions */
 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;
 
        spin_lock_irqsave(&s->queued_bufs_lock, flags);
@@ -446,7 +446,7 @@ static int airspy_alloc_urbs(struct airspy *s)
 /* Must be called with vb_queue_lock hold */
 static void airspy_cleanup_queued_bufs(struct airspy *s)
 {
-       unsigned long flags = 0;
+       unsigned long flags;
 
        dev_dbg(s->dev, "\n");
 
@@ -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_frame_buf *buf =
                        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 */
        if (unlikely(!s->udev)) {
This page took 0.027249 seconds and 5 git commands to generate.