2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>

* rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c:
	Remove unchecked return status pointed out by clang.
This commit is contained in:
Joel Sherrill
2010-11-16 17:48:06 +00:00
parent fd83f1687d
commit 5290c5aeb8
3 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c:
Remove unchecked return status pointed out by clang.
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/putk.c: Remove useless variable initialization * libcsupport/src/putk.c: Remove useless variable initialization

View File

@@ -1,7 +1,7 @@
/* /*
* Rate Monotonic Manager -- Report Statistics for All Periods * Rate Monotonic Manager -- Report Statistics for All Periods
* *
* COPYRIGHT (c) 1989-2009. * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -103,10 +103,12 @@ ididididid NNNN ccccc mmmmmm X
continue; continue;
/* If the above passed, so should this but check it anyway */ /* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
#if defined(RTEMS_DEBUG) #if defined(RTEMS_DEBUG)
status = rtems_rate_monotonic_get_status( id, &the_status );
if ( status != RTEMS_SUCCESSFUL ) if ( status != RTEMS_SUCCESSFUL )
continue; continue;
#else
(void) rtems_rate_monotonic_get_status( id, &the_status );
#endif #endif
rtems_object_get_name( the_status.owner, sizeof(name), name ); rtems_object_get_name( the_status.owner, sizeof(name), name );

View File

@@ -1,7 +1,7 @@
/* /*
* Rate Monotonic Manager -- Reset Statistics for All Periods * Rate Monotonic Manager -- Reset Statistics for All Periods
* *
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -28,7 +28,6 @@
void rtems_rate_monotonic_reset_all_statistics( void ) void rtems_rate_monotonic_reset_all_statistics( void )
{ {
Objects_Id id; Objects_Id id;
rtems_status_code status;
/* /*
* Prevent allocation or deallocation of any of the periods while * Prevent allocation or deallocation of any of the periods while
@@ -46,7 +45,7 @@ void rtems_rate_monotonic_reset_all_statistics( void )
for ( id=_Rate_monotonic_Information.minimum_id ; for ( id=_Rate_monotonic_Information.minimum_id ;
id <= _Rate_monotonic_Information.maximum_id ; id <= _Rate_monotonic_Information.maximum_id ;
id++ ) { id++ ) {
status = rtems_rate_monotonic_reset_statistics( id ); (void) rtems_rate_monotonic_reset_statistics( id );
} }
/* /*