[rtems commit] libchip/display/disp_hcms29xx.c: Remove useless variable and check
Joel Sherril
joel at rtems.org
Wed Nov 26 13:55:50 UTC 2014
Module: rtems
Branch: master
Commit: 0ad1e8001fc7ef254c6ab1d36b0cbba9f849d73b
Changeset: http://git.rtems.org/rtems/commit/?id=0ad1e8001fc7ef254c6ab1d36b0cbba9f849d73b
Author: Josh Oguin <josh.oguin at oarcorp.com>
Date: Wed Nov 19 14:26:58 2014 -0600
libchip/display/disp_hcms29xx.c: Remove useless variable and check
This was flagged by CodeSonar.
---
c/src/libchip/display/disp_hcms29xx.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/c/src/libchip/display/disp_hcms29xx.c b/c/src/libchip/display/disp_hcms29xx.c
index 50fce99..5730b36 100644
--- a/c/src/libchip/display/disp_hcms29xx.c
+++ b/c/src/libchip/display/disp_hcms29xx.c
@@ -514,14 +514,9 @@ static rtems_timer_service_routine disp_hcms29xx_timer_sr
| <none used> |
\*=========================================================================*/
{
- rtems_status_code rc = RTEMS_SUCCESSFUL;
disp_hcms29xx_drv_t *softc_ptr = arg;
-
- if (rc == RTEMS_SUCCESSFUL) {
- rc = rtems_event_send(softc_ptr->disp_param.task_id,
- DISP_HCMS29XX_EVENT_TIMER);
- }
+ rtems_event_send(softc_ptr->disp_param.task_id, DISP_HCMS29XX_EVENT_TIMER);
}
/*=========================================================================*\
More information about the vc
mailing list