Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90b698... Commit: 90b698dd47f3929f20746f828e2cd648bc6539dd Parent: adeeac3b7989ad9f03651e9224c9c63e221d4310 Author: Alexey Klimov <klimov.linux@gmail.com> AuthorDate: Thu Oct 9 13:42:32 2008 -0300 Committer: Mauro Carvalho Chehab <mchehab@redhat.com> CommitDate: Mon Oct 13 07:16:03 2008 -0200 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> --- 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 b3a5cb1..66783ff 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; } -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
