Skip to content

Commit

Permalink
V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s…
Browse files Browse the repository at this point in the history
…_ctrl

Added return -EBUSY and fixed codingstyle issue

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Alexey Klimov authored and Mauro Carvalho Chehab committed Oct 13, 2008
1 parent adeeac3 commit 90b698d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/media/radio/dsbr100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 90b698d

Please sign in to comment.