Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -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:{
				case 0:
					result.value = 0;
					result.kind = is_digital;
					}
					break;
				case 1:{
				case 1:
					result.value = 1;
					result.kind = is_digital;
					}
					break;
				}
			} else {