[rtems commit] ep1a/startup/bspstart.c: Remove myCpu variables and clean up

Joel Sherrill joel at rtems.org
Thu Oct 16 13:50:01 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Oct 13 15:52:00 2014 -0500

ep1a/startup/bspstart.c: Remove myCpu variables and clean up

---

 c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
index deb2572..47b6312 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
@@ -243,7 +243,6 @@ void bsp_start( void )
   uintptr_t intrStackStart;
   uintptr_t intrStackSize;
   ppc_cpu_id_t myCpu;
-  ppc_cpu_revision_t myCpuRevision;
   Triv121PgTbl	pt=0;   /*  R = e; */
 
   /*
@@ -252,9 +251,8 @@ void bsp_start( void )
    * latter...
    */
   BSP_Increment_Light();
-  myCpu         = get_ppc_cpu_type();
-  myCpuRevision = get_ppc_cpu_revision();
-  (void) myCpuRevision; /* avoid set but not used warning */
+  myCpu = get_ppc_cpu_type();
+  get_ppc_cpu_revision();
 
   EUMBBAR = get_eumbbar();
   printk("EUMBBAR 0x%08x\n", EUMBBAR );



More information about the vc mailing list