From: Mauro Carvalho Chehab Date: Mon, 21 Jul 2014 23:29:54 +0000 (-0300) Subject: staging/airspy: fix a compilation warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9d889d3249a6fee8ba61d0ea0e6f0a8e857c832;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);