[rtems commit] cpukit/rtems/src/partcreate.c: Correct style by adding braces

Joel Sherrill joel at rtems.org
Thu Jan 26 19:07:59 UTC 2023


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Thu Jan 26 13:23:12 2023 -0600

cpukit/rtems/src/partcreate.c: Correct style by adding braces

---

 cpukit/rtems/src/partcreate.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
index 3c128dfed1..ab09f1fd60 100644
--- a/cpukit/rtems/src/partcreate.c
+++ b/cpukit/rtems/src/partcreate.c
@@ -102,14 +102,17 @@ rtems_status_code rtems_partition_create(
     return RTEMS_INVALID_ADDRESS;
   }
 
-  if ( length == 0 )
+  if ( length == 0 ) {
     return RTEMS_INVALID_SIZE;
+  }
 
-  if ( buffer_size == 0 )
+  if ( buffer_size == 0 ) {
     return RTEMS_INVALID_SIZE;
+  }
 
-  if ( length < buffer_size )
+  if ( length < buffer_size ) {
     return RTEMS_INVALID_SIZE;
+  }
 
   /*
    * Ensure that the buffer size is an integral multiple of the pointer size so



More information about the vc mailing list