diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2008-10-09 12:42:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-13 05:16:03 -0400 |
commit | 90b698dd47f3929f20746f828e2cd648bc6539dd (patch) | |
tree | 5589e471bd0894f1e4c89ba3bf21bb618dd187dc /drivers/media/radio | |
parent | adeeac3b7989ad9f03651e9224c9c63e221d4310 (diff) |
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')
-rw-r--r-- | drivers/media/radio/dsbr100.c | 8 |
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, | |||
360 | switch (ctrl->id) { | 360 | switch (ctrl->id) { |
361 | case V4L2_CID_AUDIO_MUTE: | 361 | case V4L2_CID_AUDIO_MUTE: |
362 | if (ctrl->value) { | 362 | if (ctrl->value) { |
363 | if (dsbr100_stop(radio)==-1) | 363 | if (dsbr100_stop(radio) == -1) { |
364 | warn("Radio did not respond properly"); | 364 | warn("Radio did not respond properly"); |
365 | return -EBUSY; | ||
366 | } | ||
365 | } else { | 367 | } else { |
366 | if (dsbr100_start(radio)==-1) | 368 | if (dsbr100_start(radio) == -1) { |
367 | warn("Radio did not respond properly"); | 369 | warn("Radio did not respond properly"); |
370 | return -EBUSY; | ||
371 | } | ||
368 | } | 372 | } |
369 | return 0; | 373 | return 0; |
370 | } | 374 | } |