summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-01-19 23:03:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-01-19 23:03:24 +0000
commite00381a5749e687e0a88058104af904e9d52c311 (patch)
treeb5b70919078481c4e1912caa157081c3676bffba /cpukit/libcsupport
parent2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-e00381a5749e687e0a88058104af904e9d52c311.tar.bz2
2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>
Coverity Id 28 * libcsupport/src/termios.c: Set then unconditionally to avoid potential paths where it might be used uninitialized. Recommended by Eric Norum.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/termios.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index 22811b64e8..894d870ec9 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -975,8 +975,7 @@ fillBufferPoll (struct rtems_termios_tty *tty)
}
else {
rtems_interval then, now;
- if (!tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
- then = rtems_clock_get_ticks_since_boot();
+ then = rtems_clock_get_ticks_since_boot();
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
if (n < 0) {