mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -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:
parent
071e0866d2
commit
761a38a4e7
1 changed files with 6 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue