Commit 761a38a4 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: serial2002: cleanup serial_read()

Remove the unnecessary '{ }' around the code and the extra indents
in the switch().
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 071e0866
...@@ -273,15 +273,13 @@ static struct serial_data serial_read(struct file *f, int timeout) ...@@ -273,15 +273,13 @@ static struct serial_data serial_read(struct file *f, int timeout)
} else { } else {
if (length == 1) { if (length == 1) {
switch ((data >> 5) & 0x03) { switch ((data >> 5) & 0x03) {
case 0:{ case 0:
result.value = 0; result.value = 0;
result.kind = is_digital; result.kind = is_digital;
}
break; break;
case 1:{ case 1:
result.value = 1; result.value = 1;
result.kind = is_digital; result.kind = is_digital;
}
break; break;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment