forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user