[PATCH 14/62] ep1a/startup/bspstart.c: Remove myCpu variables and clean up

Joel Sherrill joel.sherrill at oarcorp.com
Wed Oct 15 20:00:04 UTC 2014


---
 c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c | 6 ++----
 1 file 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 );
-- 
1.9.3




More information about the devel mailing list