summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectnametoidstring.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-11-16 17:50:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-11-16 17:50:26 +0000
commit16d7b65331f469935c6f630edc0f3a0be74dedb3 (patch)
treece86edbbbae009498ed4cadfb0d7e50471413f81 /cpukit/score/src/objectnametoidstring.c
parent2010-11-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-16d7b65331f469935c6f630edc0f3a0be74dedb3.tar.bz2
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.
Diffstat (limited to 'cpukit/score/src/objectnametoidstring.c')
-rw-r--r--cpukit/score/src/objectnametoidstring.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/score/src/objectnametoidstring.c b/cpukit/score/src/objectnametoidstring.c
index 71c7cc853f..17b43d725d 100644
--- a/cpukit/score/src/objectnametoidstring.c
+++ b/cpukit/score/src/objectnametoidstring.c
@@ -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 ];