[PATCH 03/20] libchip/display/disp_hcms29xx.c: Remove useless variable and check

Joel Sherrill joel.sherrill at oarcorp.com
Tue Nov 25 23:02:31 UTC 2014


From: Josh Oguin <josh.oguin at oarcorp.com>

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);
 }
 
 /*=========================================================================*\
-- 
1.9.3




More information about the devel mailing list