summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/partcreate.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/partcreate.c')
-rw-r--r--cpukit/rtems/src/partcreate.c9
1 files 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