Skip to content

Commit

Permalink
staging/airspy: fix a compilation warning
Browse files Browse the repository at this point in the history
drivers/staging/media/airspy/airspy.c: In function 'airspy_stop_streaming':
drivers/staging/media/airspy/airspy.c:569:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  int ret;
      ^

Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 21, 2014
1 parent 565092c commit d9d889d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/media/airspy/airspy.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,14 +566,13 @@ static int airspy_start_streaming(struct vb2_queue *vq, unsigned int count)
static void airspy_stop_streaming(struct vb2_queue *vq)
{
struct airspy *s = vb2_get_drv_priv(vq);
int ret;

dev_dbg(&s->udev->dev, "%s:\n", __func__);

mutex_lock(&s->v4l2_lock);

/* stop hardware streaming */
ret = airspy_ctrl_msg(s, CMD_RECEIVER_MODE, 0, 0, NULL, 0);
airspy_ctrl_msg(s, CMD_RECEIVER_MODE, 0, 0, NULL, 0);

airspy_kill_urbs(s);
airspy_free_urbs(s);
Expand Down

0 comments on commit d9d889d

Please sign in to comment.