diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-11-11 21:07:04 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-11-11 21:07:04 +0000 |
commit | 858c6b70e59fc7b44243c0c7fb0455323e723b1d (patch) | |
tree | 1263a88640c471c35349a8310827ae746266f7e8 | |
parent | 979392c3e5cd32a4d570f7d37f22baebd04699ba (diff) |
No need for double tcsetattr()
-rw-r--r-- | tools/csr_h4.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/csr_h4.c b/tools/csr_h4.c index 2a6c156f..1e051903 100644 --- a/tools/csr_h4.c +++ b/tools/csr_h4.c @@ -67,13 +67,6 @@ int csr_open_h4(char *device) ti.c_cflag |= CLOCAL; ti.c_cflag |= CRTSCTS; - if (tcsetattr(fd, TCSANOW, &ti) < 0) { - fprintf(stderr, "Can't change port settings: %s (%d)\n", - strerror(errno), errno); - close(fd); - return -1; - } - cfsetospeed(&ti, B38400); if (tcsetattr(fd, TCSANOW, &ti) < 0) { |