[rtems commit] objectgetnameasstring.c: Reformat _Objects_Get() switch to follow pattern
Joel Sherril
joel at rtems.org
Wed Nov 26 13:55:51 UTC 2014
Module: rtems
Branch: master
Commit: 8b9bc54b5aa6de5570259b8e6095074ab1971955
Changeset: http://git.rtems.org/rtems/commit/?id=8b9bc54b5aa6de5570259b8e6095074ab1971955
Author: Josh Oguin <josh.oguin at oarcorp.com>
Date: Wed Nov 19 14:49:46 2014 -0600
objectgetnameasstring.c: Reformat _Objects_Get() switch to follow pattern
---
cpukit/score/src/objectgetnameasstring.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/cpukit/score/src/objectgetnameasstring.c b/cpukit/score/src/objectgetnameasstring.c
index 099d837..7505c02 100644
--- a/cpukit/score/src/objectgetnameasstring.c
+++ b/cpukit/score/src/objectgetnameasstring.c
@@ -59,13 +59,6 @@ char *_Objects_Get_name_as_string(
the_object = _Objects_Get( information, tmpId, &location );
switch ( location ) {
-#if defined(RTEMS_MULTIPROCESSING)
- case OBJECTS_REMOTE:
- /* not supported */
-#endif
- case OBJECTS_ERROR:
- return NULL;
-
case OBJECTS_LOCAL:
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
@@ -94,6 +87,14 @@ char *_Objects_Get_name_as_string(
_Objects_Put( the_object );
return name;
+
+#if defined(RTEMS_MULTIPROCESSING)
+ case OBJECTS_REMOTE:
+ /* not supported */
+#endif
+ case OBJECTS_ERROR:
+ return NULL;
+
}
return NULL; /* unreachable path */
}
More information about the vc
mailing list