From a2360c4f03e8a6e2c11e06b9f556aa3294d6fa69 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 26 Jan 2023 13:23:12 -0600 Subject: cpukit/rtems/src/partcreate.c: Correct style by adding braces --- cpukit/rtems/src/partcreate.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cpukit/rtems/src') 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 -- cgit v1.2.3