Commit d9d889d3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

staging/airspy: fix a compilation warning

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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 565092c6
...@@ -566,14 +566,13 @@ static int airspy_start_streaming(struct vb2_queue *vq, unsigned int count) ...@@ -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) static void airspy_stop_streaming(struct vb2_queue *vq)
{ {
struct airspy *s = vb2_get_drv_priv(vq); struct airspy *s = vb2_get_drv_priv(vq);
int ret;
dev_dbg(&s->udev->dev, "%s:\n", __func__); dev_dbg(&s->udev->dev, "%s:\n", __func__);
mutex_lock(&s->v4l2_lock); mutex_lock(&s->v4l2_lock);
/* stop hardware streaming */ /* 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_kill_urbs(s);
airspy_free_urbs(s); airspy_free_urbs(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment