staging: comedi: serial2002: cleanup serial_read()

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>
This commit is contained in:
H Hartley Sweeten
2013-04-05 16:08:51 -07:00
committed by Greg Kroah-Hartman
parent 071e0866d2
commit 761a38a4e7

View 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 {