[PATCH 17/20] objectgetnameasstring.c: Reformat _Objects_Get() switch to follow pattern

Joel Sherrill joel.sherrill at oarcorp.com
Tue Nov 25 23:02:45 UTC 2014


From: Josh Oguin <josh.oguin at oarcorp.com>

---
 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 */
 }
-- 
1.9.3




More information about the devel mailing list