[rtems commit] score: Do not shadow parameter
Sebastian Huber
sebh at rtems.org
Mon Nov 15 08:15:16 UTC 2021
Module: rtems
Branch: master
Commit: 6cef3f16b6b8e2187c1c0f85ece8846556775483
Changeset: http://git.rtems.org/rtems/commit/?id=6cef3f16b6b8e2187c1c0f85ece8846556775483
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Nov 11 14:23:31 2021 +0100
score: Do not shadow parameter
---
cpukit/score/src/coretodset.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c
index b04242a..644cac5 100644
--- a/cpukit/score/src/coretodset.c
+++ b/cpukit/score/src/coretodset.c
@@ -52,13 +52,13 @@ Status_Control _TOD_Set(
for ( cpu_index = 0 ; cpu_index < cpu_max ; ++cpu_index ) {
Per_CPU_Control *cpu;
Watchdog_Header *header;
- ISR_lock_Context lock_context;
+ ISR_lock_Context lock_context_2;
Watchdog_Control *first;
cpu = _Per_CPU_Get_by_index( cpu_index );
header = &cpu->Watchdog.Header[ PER_CPU_WATCHDOG_REALTIME ];
- _ISR_lock_ISR_disable_and_acquire( &cpu->Watchdog.Lock, &lock_context );
+ _ISR_lock_ISR_disable_and_acquire( &cpu->Watchdog.Lock, &lock_context_2 );
first = _Watchdog_Header_first( header );
@@ -68,11 +68,11 @@ Status_Control _TOD_Set(
first,
tod_as_ticks,
&cpu->Watchdog.Lock,
- &lock_context
+ &lock_context_2
);
}
- _ISR_lock_Release_and_ISR_enable( &cpu->Watchdog.Lock, &lock_context );
+ _ISR_lock_Release_and_ISR_enable( &cpu->Watchdog.Lock, &lock_context_2 );
}
_TOD.is_set = true;
More information about the vc
mailing list