diff options
author | Douglas Schilling Landgraf <dougsland@linuxtv.org> | 2008-10-09 12:42:32 -0400 |
---|---|---|
committer | Douglas Schilling Landgraf <dougsland@linuxtv.org> | 2008-10-09 12:42:32 -0400 |
commit | 9842bd3e4e6f5729e0b66e18c358f3c0f5ad4dda (patch) | |
tree | f2faa13b950f5150981d111f22a19673d6311691 /linux/drivers/media/radio/dsbr100.c | |
parent | 9e63ad90aab3091baff361668bf7b87d5dfebbca (diff) | |
download | mediapointer-dvb-s2-9842bd3e4e6f5729e0b66e18c358f3c0f5ad4dda.tar.gz mediapointer-dvb-s2-9842bd3e4e6f5729e0b66e18c358f3c0f5ad4dda.tar.bz2 |
dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl
From: Alexey Klimov <klimov.linux@gmail.com>
Added return -EBUSY and fixed codingstyle issue
Priority: normal
Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/radio/dsbr100.c')
-rw-r--r-- | linux/drivers/media/radio/dsbr100.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drivers/media/radio/dsbr100.c b/linux/drivers/media/radio/dsbr100.c index f3af92b59..7172977c7 100644 --- a/linux/drivers/media/radio/dsbr100.c +++ b/linux/drivers/media/radio/dsbr100.c @@ -361,11 +361,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; } |