staging: comedi: serial2002: cleanup serial_read()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 5 Apr 2013 23:08:51 +0000 (16:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 17:27:43 +0000 (10:27 -0700)
Remove the unnecessary '{ }' around the code and the extra indents
in the switch().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/serial2002.c

index ea693c568c3a8581359dae6e4821324701ce205d..74a0bc32b0cd02dad90fcbe501f5ff7166178ee9 100644 (file)
@@ -273,15 +273,13 @@ static struct serial_data serial_read(struct file *f, int timeout)
                } else {
                        if (length == 1) {
                                switch ((data >> 5) & 0x03) {
-                               case 0:{
-                                               result.value = 0;
-                                               result.kind = is_digital;
-                                       }
+                               case 0:
+                                       result.value = 0;
+                                       result.kind = is_digital;
                                        break;
-                               case 1:{
-                                               result.value = 1;
-                                               result.kind = is_digital;
-                                       }
+                               case 1:
+                                       result.value = 1;
+                                       result.kind = is_digital;
                                        break;
                                }
                        } else {