summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectidtoname.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-28 23:00:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-28 23:00:20 +0000
commit6fd4d06f395cefdebe2a8e5c02c89e7792ae9a25 (patch)
treef3353a761a7ece94c0bcc4b73b6177622dd8f413 /cpukit/score/src/objectidtoname.c
parent2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-6fd4d06f395cefdebe2a8e5c02c89e7792ae9a25.tar.bz2
2009-09-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/objectidtoname.c: Remove error which cannot be reached since API that calls this checks the error first. * score/src/objectsetname.c: Adjust handling of length.
Diffstat (limited to 'cpukit/score/src/objectidtoname.c')
-rw-r--r--cpukit/score/src/objectidtoname.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpukit/score/src/objectidtoname.c b/cpukit/score/src/objectidtoname.c
index 7504d3dc3c..fc42a41fa6 100644
--- a/cpukit/score/src/objectidtoname.c
+++ b/cpukit/score/src/objectidtoname.c
@@ -20,8 +20,7 @@
#include <rtems/score/object.h>
#include <rtems/score/thread.h>
-/*PAGE
- *
+/*
* _Objects_Id_to_name
*
* DESCRIPTION:
@@ -34,8 +33,6 @@
* name - pointer to location in which to store name
*
*/
-
-
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
@@ -48,8 +45,9 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Control *the_object = (Objects_Control *) 0;
Objects_Locations ignored_location;
- if ( !name )
- return OBJECTS_INVALID_NAME;
+ /*
+ * Caller is trusted for name != NULL.
+ */
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;