[rtems commit] score: Fix _Objects_Get_information() indentation
Sebastian Huber
sebh at rtems.org
Mon Feb 1 06:20:12 UTC 2021
Module: rtems
Branch: master
Commit: 395c15f6558d3d5738c1315fecfc82d79f4e17f1
Changeset: http://git.rtems.org/rtems/commit/?id=395c15f6558d3d5738c1315fecfc82d79f4e17f1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jan 28 11:17:51 2021 +0100
score: Fix _Objects_Get_information() indentation
This fix relates to a Coverity issue (NESTING_INDENT_MISMATCH).
---
cpukit/score/src/objectgetinfo.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/cpukit/score/src/objectgetinfo.c b/cpukit/score/src/objectgetinfo.c
index 07b401f..a256d20 100644
--- a/cpukit/score/src/objectgetinfo.c
+++ b/cpukit/score/src/objectgetinfo.c
@@ -52,14 +52,15 @@ Objects_Information *_Objects_Get_information(
return NULL;
/*
- * In a multprocessing configuration, we may access remote objects.
- * Thus we may have 0 local instances and still have a valid object
- * pointer.
+ * In a multiprocessing configuration, we may access remote objects.
+ * Thus we may have 0 local instances and still have a valid object
+ * pointer.
*/
- #if !defined(RTEMS_MULTIPROCESSING)
- if ( _Objects_Get_maximum_index( info ) == 0 )
- return NULL;
- #endif
+#if !defined(RTEMS_MULTIPROCESSING)
+ if ( _Objects_Get_maximum_index( info ) == 0 ) {
+ return NULL;
+ }
+#endif
return info;
}
More information about the vc
mailing list