[rtems commit] score: Do not shadow lock_context local variable

Sebastian Huber sebh at rtems.org
Mon Oct 25 07:23:09 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Oct 18 13:13:59 2021 +0200

score: Do not shadow lock_context local variable

---

 cpukit/score/src/userextremoveset.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cpukit/score/src/userextremoveset.c b/cpukit/score/src/userextremoveset.c
index d0efae6..3f96863 100644
--- a/cpukit/score/src/userextremoveset.c
+++ b/cpukit/score/src/userextremoveset.c
@@ -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 );



More information about the vc mailing list