score: Do not shadow lock_context local variable

This commit is contained in:
Sebastian Huber
2021-10-25 09:24:51 +02:00
parent 24922d0f54
commit 940b9b1881
-2
View File
@@ -42,8 +42,6 @@ void _User_extensions_Remove_set (
*/
if ( the_extension->Callouts.thread_switch != NULL ) {
ISR_lock_Context lock_context;
_Per_CPU_Acquire_all( &lock_context );
_Chain_Extract_unprotected( &the_extension->Switch.Node );
_Per_CPU_Release_all( &lock_context );