]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl
authorAlexey Klimov <klimov.linux@gmail.com>
Thu, 9 Oct 2008 16:42:32 +0000 (13:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 13 Oct 2008 09:16:03 +0000 (07:16 -0200)
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

index b3a5cb1adf3a6d5552f731fa823aab3aee0db341..66783fffe4c1c34dc0e57e9b32feb775c8da3fc2 100644 (file)
@@ -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;
        }