[rtems commit] libcsupport/src/termios.c: Explicitly ignore return value ( Coverity ID 1255347)
Joel Sherril
joel at rtems.org
Fri Nov 21 19:13:32 UTC 2014
Module: rtems
Branch: master
Commit: 5dff7425bd928377f51585d3d8a19a37acdd9773
Changeset: http://git.rtems.org/rtems/commit/?id=5dff7425bd928377f51585d3d8a19a37acdd9773
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Thu Nov 20 17:17:18 2014 -0600
libcsupport/src/termios.c: Explicitly ignore return value (Coverity ID 1255347)
Coverity spotted that we were ignoring a return value. But ignoring
it is intentional. Adding (void) clearly indicates it is being ignored
explicitly.
---
cpukit/libcsupport/src/termios.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index f0ecad0..d12f9c4 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -1,6 +1,9 @@
-/*
+/**
+ * @file
* TERMIOS serial line support
- *
+ */
+
+/*
* Author:
* W. Eric Norum
* Saskatchewan Accelerator Laboratory
@@ -344,7 +347,7 @@ rtems_termios_destroy_tty (rtems_termios_tty *tty, void *arg, bool last_close)
/*
* call discipline-specific close
*/
- sc = rtems_termios_linesw[tty->t_line].l_close(tty);
+ (void) rtems_termios_linesw[tty->t_line].l_close(tty);
} else if (last_close) {
/*
* default: just flush output buffer
More information about the vc
mailing list