From adfa4f04808ec819cfc5ec8ab105a7fbeb434bdc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 5 Dec 2006 13:35:45 +0000 Subject: Eliminate redundant setting of CS7/CS8. All regression tests pass. --- serial.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'serial.c') 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; -- cgit v1.2.1