[PATCH v3 4/4] disp_hcms29xx.c: Unused value (CID #1399752)

Ryan Long ryan.long at oarcorp.com
Tue Apr 6 19:55:25 UTC 2021


CID 1399752: Unused value in disp_hcms29xx_update_task().

Closes #4342
---
 bsps/shared/dev/display/disp_hcms29xx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bsps/shared/dev/display/disp_hcms29xx.c b/bsps/shared/dev/display/disp_hcms29xx.c
index 740aa56..5ad7063 100644
--- a/bsps/shared/dev/display/disp_hcms29xx.c
+++ b/bsps/shared/dev/display/disp_hcms29xx.c
@@ -23,6 +23,7 @@
 
 #include <rtems.h>
 #include <rtems/libio.h>
+#include <rtems/score/assert.h>
 #include <bsp.h>
 #include <rtems/libi2c.h>
 #include <libchip/disp_hcms29xx.h>
@@ -596,7 +597,8 @@ static rtems_task disp_hcms29xx_update_task
 	  (int) strlen(softc_ptr->disp_param.disp_buffer);
       }
       if (rc == RTEMS_SUCCESSFUL) {
-	rc = rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
+        rc = rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
+        _Assert_Unused_variable_equals(rc, RTEMS_SUCCESSFUL);
       }
       /*
        * set initial offset to negative value
-- 
1.8.3.1



More information about the devel mailing list