[rtems commit] tqm8xx/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:    a8ac803e936b34e90237f0c633c97e39df504826
Changeset: http://git.rtems.org/rtems/commit/?id=a8ac803e936b34e90237f0c633c97e39df504826

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

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

---

 c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c
index 3951b31..fdbe09a 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c
@@ -130,18 +130,17 @@ rtems_status_code  bsp_tqm_get_cib_uint32( const char *cib_id,
 
 void bsp_start( void)
 {
-  ppc_cpu_id_t myCpu;
-  ppc_cpu_revision_t myCpuRevision;
 
   uintptr_t interrupt_stack_start = (uintptr_t) bsp_interrupt_stack_start;
   uintptr_t interrupt_stack_size = (uintptr_t) bsp_interrupt_stack_size;
 
   /*
-   * Get CPU identification dynamically. Note that the get_ppc_cpu_type() function
-   * store the result in global variables so that it can be used latter...
+   * Get CPU identification dynamically. Note that the get_ppc_cpu_type()
+   * function stores the result in global variables so that it can be used
+   * later...
    */
-  myCpu = get_ppc_cpu_type();
-  myCpuRevision = get_ppc_cpu_revision();
+  get_ppc_cpu_type();
+  get_ppc_cpu_revision();
 
   /* Basic CPU initialization */
   cpu_init();



More information about the vc mailing list