summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-12-05 13:35:45 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-12-05 13:35:45 +0000
commitadfa4f04808ec819cfc5ec8ab105a7fbeb434bdc (patch)
treea77cbf52809606bf2fc7e1a1cef8471a06c4e413 /serial.c
parente73040595fc8c6a41daf52ed53cc0c6b8d6bf528 (diff)
downloadgpsd-adfa4f04808ec819cfc5ec8ab105a7fbeb434bdc.tar.gz
Eliminate redundant setting of CS7/CS8. All regression tests pass.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/serial.c b/serial.c
index 49a1b304..72f66c84 100644
--- a/serial.c
+++ b/serial.c
@@ -116,8 +116,6 @@ void gpsd_set_speed(struct gps_device_t *session,
session->ttyset.c_cflag |= PARENB | PARODD;
break;
}
- session->ttyset.c_cflag &=~ CSIZE;
- session->ttyset.c_cflag |= (CSIZE & (stopbits==2 ? CS7 : CS8));
if (tcsetattr(session->gpsdata.gps_fd, TCSANOW, &session->ttyset) != 0)
return;