Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78e51566 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] em28xx: Fix return value for s_ctrl



On some cases, driver returns 1. This should be OK, but qv4l2 is too
strict about return values.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0e09a3c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1452,7 +1452,7 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
			rc = em28xx_audio_analog_set(dev);
			rc = em28xx_audio_analog_set(dev);
		}
		}
	}
	}
	return rc;
	return (rc < 0) ? rc : 0;
}
}


static int vidioc_g_tuner(struct file *file, void *priv,
static int vidioc_g_tuner(struct file *file, void *priv,