From 4280dff7cfbc7c14c4231ac68637650f39f792b1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 30 Jun 2016 11:01:05 +0200 Subject: smptests/smpstrongapa01: Simplify --- testsuites/smptests/smpstrongapa01/init.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'testsuites/smptests/smpstrongapa01/init.c') diff --git a/testsuites/smptests/smpstrongapa01/init.c b/testsuites/smptests/smpstrongapa01/init.c index 35b45a6485..56f49cf34f 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); } } -- cgit v1.2.3