[PATCH] removed unneccesary assigning to rc triggering unused value error in coverity
suyash singh
suyashsingh234 at gmail.com
Thu Feb 27 10:24:07 UTC 2020
---
bsps/shared/dev/display/disp_hcms29xx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bsps/shared/dev/display/disp_hcms29xx.c b/bsps/shared/dev/display/disp_hcms29xx.c
index 5730b36ea9..9d3e7220cf 100644
--- a/bsps/shared/dev/display/disp_hcms29xx.c
+++ b/bsps/shared/dev/display/disp_hcms29xx.c
@@ -530,7 +530,7 @@ static rtems_task disp_hcms29xx_update_task
+---------------------------------------------------------------------------+
| Input Parameters: |
\*-------------------------------------------------------------------------*/
- rtems_task_argument argument
+ rtems_task_argument argument
)
/*-------------------------------------------------------------------------*\
| Return Value: |
@@ -597,7 +597,7 @@ 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);
+ rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
}
/*
* set initial offset to negative value
@@ -911,7 +911,7 @@ static rtems_driver_address_table disp_hcms29xx_ops = {
static disp_hcms29xx_drv_t disp_hcms29xx_drv_tbl = {
{/* public fields */
- .ops = &disp_hcms29xx_ops,
+ .ops = &disp_hcms29xx_ops,
.size = sizeof (disp_hcms29xx_drv_t),
},
{ /* our private fields */
@@ -927,6 +927,6 @@ static disp_hcms29xx_drv_t disp_hcms29xx_drv_tbl = {
}
};
-rtems_libi2c_drv_t *disp_hcms29xx_driver_descriptor =
+rtems_libi2c_drv_t *disp_hcms29xx_driver_descriptor =
&disp_hcms29xx_drv_tbl.libi2c_drv_entry;
--
2.17.1
More information about the devel
mailing list