[rtems commit] bsps/grlib: Fix use of uninitialized variable

Sebastian Huber sebh at rtems.org
Mon Jul 17 05:39:16 UTC 2023


Module:    rtems
Branch:    master
Commit:    fb0eb31a55838f1287fa1aa650fdeb1c3c7e8687
Changeset: http://git.rtems.org/rtems/commit/?id=fb0eb31a55838f1287fa1aa650fdeb1c3c7e8687

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jul 17 07:59:47 2023 +0200

bsps/grlib: Fix use of uninitialized variable

Fixes Coverity CID 1538314.

---

 bsps/shared/grlib/uart/apbuart_cons.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/bsps/shared/grlib/uart/apbuart_cons.c b/bsps/shared/grlib/uart/apbuart_cons.c
index 74f9bf3e0c..a8b4eaaf88 100644
--- a/bsps/shared/grlib/uart/apbuart_cons.c
+++ b/bsps/shared/grlib/uart/apbuart_cons.c
@@ -432,7 +432,6 @@ static bool first_open(
 
 	if (uart->mode != TERMIOS_POLLED) {
 		int ret;
-		uint32_t ctrl;
 
 		/* Register interrupt and enable it */
 		ret = drvmgr_interrupt_register(



More information about the vc mailing list