[rtems commit] region*.c: Ensure return_status is set when RTEMS_MULTIPROCESSING is enabled

Joel Sherril joel at rtems.org
Thu May 21 15:29:13 UTC 2015


Module:    rtems
Branch:    master
Commit:    63c68cfcafe3f070f377944d1370375783c8696e
Changeset: http://git.rtems.org/rtems/commit/?id=63c68cfcafe3f070f377944d1370375783c8696e

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu May 21 05:55:15 2015 -0700

region*.c: Ensure return_status is set when RTEMS_MULTIPROCESSING is enabled

---

 cpukit/rtems/src/regiondelete.c         | 1 -
 cpukit/rtems/src/regionextend.c         | 1 -
 cpukit/rtems/src/regiongetfreeinfo.c    | 1 -
 cpukit/rtems/src/regiongetinfo.c        | 1 -
 cpukit/rtems/src/regiongetsegment.c     | 1 -
 cpukit/rtems/src/regiongetsegmentsize.c | 1 -
 cpukit/rtems/src/regionresizesegment.c  | 1 -
 cpukit/rtems/src/regionreturnsegment.c  | 1 -
 8 files changed, 8 deletions(-)

diff --git a/cpukit/rtems/src/regiondelete.c b/cpukit/rtems/src/regiondelete.c
index 5a2df7c..b5209da 100644
--- a/cpukit/rtems/src/regiondelete.c
+++ b/cpukit/rtems/src/regiondelete.c
@@ -52,7 +52,6 @@ rtems_status_code rtems_region_delete(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regionextend.c b/cpukit/rtems/src/regionextend.c
index 65b68cd..2ee2b99 100644
--- a/cpukit/rtems/src/regionextend.c
+++ b/cpukit/rtems/src/regionextend.c
@@ -65,7 +65,6 @@ rtems_status_code rtems_region_extend(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regiongetfreeinfo.c b/cpukit/rtems/src/regiongetfreeinfo.c
index be0f008..6ebd1ab 100644
--- a/cpukit/rtems/src/regiongetfreeinfo.c
+++ b/cpukit/rtems/src/regiongetfreeinfo.c
@@ -56,7 +56,6 @@ rtems_status_code rtems_region_get_free_information(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regiongetinfo.c b/cpukit/rtems/src/regiongetinfo.c
index c3466f0..d5eee72 100644
--- a/cpukit/rtems/src/regiongetinfo.c
+++ b/cpukit/rtems/src/regiongetinfo.c
@@ -50,7 +50,6 @@ rtems_status_code rtems_region_get_information(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regiongetsegment.c b/cpukit/rtems/src/regiongetsegment.c
index 1e5c795..26437b5 100644
--- a/cpukit/rtems/src/regiongetsegment.c
+++ b/cpukit/rtems/src/regiongetsegment.c
@@ -100,7 +100,6 @@ rtems_status_code rtems_region_get_segment(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regiongetsegmentsize.c b/cpukit/rtems/src/regiongetsegmentsize.c
index 8f823fc..ab07a56 100644
--- a/cpukit/rtems/src/regiongetsegmentsize.c
+++ b/cpukit/rtems/src/regiongetsegmentsize.c
@@ -53,7 +53,6 @@ rtems_status_code rtems_region_get_segment_size(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regionresizesegment.c b/cpukit/rtems/src/regionresizesegment.c
index ee3499a..b1d9482 100644
--- a/cpukit/rtems/src/regionresizesegment.c
+++ b/cpukit/rtems/src/regionresizesegment.c
@@ -79,7 +79,6 @@ rtems_status_code rtems_region_resize_segment(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:
diff --git a/cpukit/rtems/src/regionreturnsegment.c b/cpukit/rtems/src/regionreturnsegment.c
index 6ae537f..98f2240 100644
--- a/cpukit/rtems/src/regionreturnsegment.c
+++ b/cpukit/rtems/src/regionreturnsegment.c
@@ -82,7 +82,6 @@ rtems_status_code rtems_region_return_segment(
 
 #if defined(RTEMS_MULTIPROCESSING)
       case OBJECTS_REMOTE:        /* this error cannot be returned */
-        break;
 #endif
 
       case OBJECTS_ERROR:




More information about the vc mailing list