mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 12:21:15 -04:00
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:
committed by
Greg Kroah-Hartman
parent
071e0866d2
commit
761a38a4e7
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user