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

Commit 90b698dd authored by Alexey Klimov's avatar Alexey Klimov Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl



Added return -EBUSY and fixed codingstyle issue

Signed-off-by: default avatarAlexey Klimov <klimov.linux@gmail.com>
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent adeeac3b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -360,11 +360,15 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
	switch (ctrl->id) {
	case V4L2_CID_AUDIO_MUTE:
		if (ctrl->value) {
			if (dsbr100_stop(radio)==-1)
			if (dsbr100_stop(radio) == -1) {
				warn("Radio did not respond properly");
				return -EBUSY;
			}
		} else {
			if (dsbr100_start(radio)==-1)
			if (dsbr100_start(radio) == -1) {
				warn("Radio did not respond properly");
				return -EBUSY;
			}
		}
		return 0;
	}