summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/dsbr100.c
diff options
context:
space:
mode:
authorAlexey Klimov <klimov.linux@gmail.com>2008-10-09 13:42:32 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-13 07:16:03 -0200
commit90b698dd47f3929f20746f828e2cd648bc6539dd (patch)
tree5589e471bd0894f1e4c89ba3bf21bb618dd187dc /drivers/media/radio/dsbr100.c
parentadeeac3b7989ad9f03651e9224c9c63e221d4310 (diff)
downloadlinux-stable-90b698dd47f3929f20746f828e2cd648bc6539dd.tar.gz
linux-stable-90b698dd47f3929f20746f828e2cd648bc6539dd.tar.bz2
linux-stable-90b698dd47f3929f20746f828e2cd648bc6539dd.zip
V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_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>
Diffstat (limited to 'drivers/media/radio/dsbr100.c')
-rw-r--r--drivers/media/radio/dsbr100.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c
index b3a5cb1adf3a..66783fffe4c1 100644
--- a/drivers/media/radio/dsbr100.c
+++ b/drivers/media/radio/dsbr100.c
@@ -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;
}