[rtems commit] disp_hcms29xx.c: Unused value (CID #1399752)
Joel Sherrill
joel at rtems.org
Thu Apr 8 23:02:02 UTC 2021
Module: rtems
Branch: master
Commit: 3cd58bdf2c2a125a5dfb23d09037d9b5a592f2fd
Changeset: http://git.rtems.org/rtems/commit/?id=3cd58bdf2c2a125a5dfb23d09037d9b5a592f2fd
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Mon Mar 15 12:39:27 2021 -0400
disp_hcms29xx.c: Unused value (CID #1399752)
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
More information about the vc
mailing list