diff options
author | Joel Sherrill <joel@rtems.org> | 2023-01-26 13:23:12 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-01-26 13:23:25 -0600 |
commit | a2360c4f03e8a6e2c11e06b9f556aa3294d6fa69 (patch) | |
tree | 2b0e1808e1704ab73434a46778486b147aea477e /cpukit/rtems | |
parent | score: Remove unused return value (diff) | |
download | rtems-a2360c4f03e8a6e2c11e06b9f556aa3294d6fa69.tar.bz2 |
cpukit/rtems/src/partcreate.c: Correct style by adding braces
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/partcreate.c | 9 |
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 |