[rtems commit] smptests/smpstrongapa01: Simplify

Sebastian Huber sebh at rtems.org
Thu Jun 30 09:01:22 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 30 11:01:05 2016 +0200

smptests/smpstrongapa01: Simplify

---

 testsuites/smptests/smpstrongapa01/init.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/testsuites/smptests/smpstrongapa01/init.c b/testsuites/smptests/smpstrongapa01/init.c
index 35b45a6..56f49cf 100644
--- a/testsuites/smptests/smpstrongapa01/init.c
+++ b/testsuites/smptests/smpstrongapa01/init.c
@@ -135,11 +135,7 @@ static void set_affinity(rtems_id id, uint32_t cpu_set_32)
   CPU_ZERO(&cpu_set);
 
   for (i = 0; i < CPU_COUNT; ++i) {
-    uint32_t one;
-
-    one = 1;
-
-    if ((cpu_set_32 & (one << i)) != 0) {
+    if ((cpu_set_32 & (UINT32_C(1) << i)) != 0) {
       CPU_SET(i, &cpu_set);
     }
   }




More information about the vc mailing list