diff options
author | Antti Palosaari <crope@iki.fi> | 2014-08-24 18:27:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-21 15:42:33 -0400 |
commit | 8880f2cbdb0a981ea8e6a5ce2915abac26120523 (patch) | |
tree | 38b4f0d3a0b366438f14f0a3c996acb8d88bff39 | |
parent | 617123ae383e66b3a2c5f57155b49af5bb4327db (diff) |
[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: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/usb/airspy/airspy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c index de9fc52d3763..994c9914ab9b 100644 --- a/drivers/media/usb/airspy/airspy.c +++ b/drivers/media/usb/airspy/airspy.c | |||
@@ -223,7 +223,7 @@ err: | |||
223 | /* Private functions */ | 223 | /* Private functions */ |
224 | static struct airspy_frame_buf *airspy_get_next_fill_buf(struct airspy *s) | 224 | static struct airspy_frame_buf *airspy_get_next_fill_buf(struct airspy *s) |
225 | { | 225 | { |
226 | unsigned long flags = 0; | 226 | unsigned long flags; |
227 | struct airspy_frame_buf *buf = NULL; | 227 | struct airspy_frame_buf *buf = NULL; |
228 | 228 | ||
229 | spin_lock_irqsave(&s->queued_bufs_lock, flags); | 229 | spin_lock_irqsave(&s->queued_bufs_lock, flags); |
@@ -446,7 +446,7 @@ static int airspy_alloc_urbs(struct airspy *s) | |||
446 | /* Must be called with vb_queue_lock hold */ | 446 | /* Must be called with vb_queue_lock hold */ |
447 | static void airspy_cleanup_queued_bufs(struct airspy *s) | 447 | static void airspy_cleanup_queued_bufs(struct airspy *s) |
448 | { | 448 | { |
449 | unsigned long flags = 0; | 449 | unsigned long flags; |
450 | 450 | ||
451 | dev_dbg(s->dev, "\n"); | 451 | dev_dbg(s->dev, "\n"); |
452 | 452 | ||
@@ -506,7 +506,7 @@ static void airspy_buf_queue(struct vb2_buffer *vb) | |||
506 | struct airspy *s = vb2_get_drv_priv(vb->vb2_queue); | 506 | struct airspy *s = vb2_get_drv_priv(vb->vb2_queue); |
507 | struct airspy_frame_buf *buf = | 507 | struct airspy_frame_buf *buf = |
508 | container_of(vb, struct airspy_frame_buf, vb); | 508 | container_of(vb, struct airspy_frame_buf, vb); |
509 | unsigned long flags = 0; | 509 | unsigned long flags; |
510 | 510 | ||
511 | /* Check the device has not disconnected between prep and queuing */ | 511 | /* Check the device has not disconnected between prep and queuing */ |
512 | if (unlikely(!s->udev)) { | 512 | if (unlikely(!s->udev)) { |