forked from Imagelibrary/rtems
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/objectnametoid.c, score/src/objectnametoidstring.c: Remove useless variable pointed out by clang. * score/src/threadstackallocate.c: Remove useless variable initialization pointed out by clang.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* score/src/objectnametoid.c, score/src/objectnametoidstring.c:
|
||||
Remove useless variable pointed out by clang.
|
||||
* score/src/threadstackallocate.c: Remove useless variable
|
||||
initialization pointed out by clang.
|
||||
|
||||
2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* rtems/src/ratemonreportstatistics.c, rtems/src/ratemonresetall.c:
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/*
|
||||
* Object Handler
|
||||
*
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -57,7 +56,6 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
|
||||
bool search_local_node;
|
||||
Objects_Control *the_object;
|
||||
uint32_t index;
|
||||
uint32_t name_length;
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
Objects_Name name_for_mp;
|
||||
#endif
|
||||
@@ -80,8 +78,6 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
|
||||
search_local_node = true;
|
||||
|
||||
if ( search_local_node ) {
|
||||
name_length = information->name_length;
|
||||
|
||||
for ( index = 1; index <= information->maximum; index++ ) {
|
||||
the_object = information->local_table[ index ];
|
||||
if ( !the_object )
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/*
|
||||
* Object Handler - Object ID to Name (String)
|
||||
*
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -57,7 +56,6 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string(
|
||||
{
|
||||
Objects_Control *the_object;
|
||||
uint32_t index;
|
||||
uint32_t name_length;
|
||||
|
||||
/* ASSERT: information->is_string == true */
|
||||
|
||||
@@ -68,7 +66,6 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string(
|
||||
return OBJECTS_INVALID_NAME;
|
||||
|
||||
if ( information->maximum != 0 ) {
|
||||
name_length = information->name_length;
|
||||
|
||||
for ( index = 1; index <= information->maximum; index++ ) {
|
||||
the_object = information->local_table[ index ];
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/*
|
||||
* Thread Handler
|
||||
* Thread Handler - Stack Allocate Helper
|
||||
*
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -47,7 +46,7 @@ size_t _Thread_Stack_Allocate(
|
||||
)
|
||||
{
|
||||
void *stack_addr = 0;
|
||||
size_t the_stack_size = stack_size;
|
||||
size_t the_stack_size;
|
||||
|
||||
the_stack_size = _Stack_Ensure_minimum( stack_size );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user