[rtems commit] rtems: Fix warning
Sebastian Huber
sebh at rtems.org
Tue Jul 11 11:51:39 UTC 2017
Module: rtems
Branch: master
Commit: 3b14e7aa6e6d90cc305e894fe7e29c7b8802a722
Changeset: http://git.rtems.org/rtems/commit/?id=3b14e7aa6e6d90cc305e894fe7e29c7b8802a722
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jul 11 13:51:10 2017 +0200
rtems: Fix warning
Update #3059.
---
cpukit/rtems/src/schedulerremoveprocessor.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/cpukit/rtems/src/schedulerremoveprocessor.c b/cpukit/rtems/src/schedulerremoveprocessor.c
index 06acacd..ea3c621 100644
--- a/cpukit/rtems/src/schedulerremoveprocessor.c
+++ b/cpukit/rtems/src/schedulerremoveprocessor.c
@@ -68,7 +68,6 @@ rtems_status_code rtems_scheduler_remove_processor(
{
const Scheduler_Control *scheduler;
#if defined(RTEMS_SMP)
- uint32_t processor_count;
Scheduler_Processor_removal_context iter_context;
ISR_lock_Context lock_context;
Scheduler_Context *scheduler_context;
@@ -105,7 +104,6 @@ rtems_status_code rtems_scheduler_remove_processor(
_ISR_lock_ISR_disable( &lock_context );
_Scheduler_Acquire_critical( scheduler, &lock_context );
_Processor_mask_Clear( &scheduler_context->Processors, cpu_index );
- processor_count = _Processor_mask_Count( &scheduler_context->Processors );
_Scheduler_Release_critical( scheduler, &lock_context );
_ISR_lock_ISR_enable( &lock_context );
More information about the vc
mailing list