From d9d889d3249a6fee8ba61d0ea0e6f0a8e857c832 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 21 Jul 2014 20:29:54 -0300 Subject: [PATCH] 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 Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/airspy/airspy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/airspy/airspy.c b/drivers/staging/media/airspy/airspy.c index 0875808ce201..91857e738ba1 100644 --- a/drivers/staging/media/airspy/airspy.c +++ b/drivers/staging/media/airspy/airspy.c @@ -566,14 +566,13 @@ err: 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); -- 2.20.1