[coreboot] New patch to review for coreboot: bf2873d mptable: remove unused variable

Sven Schnelle (svens@stackframe.org) gerrit at coreboot.org
Wed Jun 20 09:14:49 CEST 2012


Sven Schnelle (svens at stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1109

-gerrit

commit bf2873d14cbc48ca35efb6f477a8e671f567b05b
Author: Sven Schnelle <svens at stackframe.org>
Date:   Wed Jun 20 09:14:08 2012 +0200

    mptable: remove unused variable
    
    Change-Id: I1ff7e040b5aafcdb05a3669158ae94551981e747
    Signed-off-by: Sven Schnelle <svens at stackframe.org>
---
 util/mptable/mptable.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/util/mptable/mptable.c b/util/mptable/mptable.c
index 9488e36..7c3033e 100644
--- a/util/mptable/mptable.c
+++ b/util/mptable/mptable.c
@@ -731,7 +731,7 @@ MPConfigTableHeader( uint32_t pap )
     vm_offset_t paddr;
     mpcth_t	cth;
     int		x;
-    int		totalSize, t;
+    int		totalSize;
     int		count, c;
     int		type;
 
@@ -804,7 +804,7 @@ MPConfigTableHeader( uint32_t pap )
     printf( "--\nProcessors:\tAPIC ID\tVersion\tState"
 	    "\t\tFamily\tModel\tStep\tFlags\n" );
     }
-    for ( t = totalSize, c = count; c; c-- ) {
+    for ( c = count; c; c-- ) {
 	if ( readType() == 0 )
 	    processorEntry();
         totalSize -= basetableEntryTypes[ 0 ].length;
@@ -812,7 +812,7 @@ MPConfigTableHeader( uint32_t pap )
 
     /* process all the busses */
     printf( "/*Bus:\t\tBus ID\tType*/\n" );
-    for ( t = totalSize, c = count; c; c-- ) {
+    for ( c = count; c; c-- ) {
 	if ( readType() == 1 )
 	    busEntry();
         totalSize -= basetableEntryTypes[ 1 ].length;
@@ -820,7 +820,7 @@ MPConfigTableHeader( uint32_t pap )
 
     /* process all the apics */
     printf( "/*I/O APICs:\tAPIC ID\tVersion\tState\t\tAddress*/\n" );
-    for ( t = totalSize, c = count; c; c-- ) {
+    for ( c = count; c; c-- ) {
 	if ( readType() == 2 )
 	    ioApicEntry();
         totalSize -= basetableEntryTypes[ 2 ].length;
@@ -828,7 +828,7 @@ MPConfigTableHeader( uint32_t pap )
 
     /* process all the I/O Ints */
     printf( "/*I/O Ints:\tType\tPolarity    Trigger\tBus ID\t IRQ\tAPIC ID\tPIN#\n*/" );
-    for ( t = totalSize, c = count; c; c-- ) {
+    for ( c = count; c; c-- ) {
 	if ( readType() == 3 )
 	    intEntry();
         totalSize -= basetableEntryTypes[ 3 ].length;
@@ -836,7 +836,7 @@ MPConfigTableHeader( uint32_t pap )
 
     /* process all the Local Ints */
     printf( "/*Local Ints:\tType\tPolarity    Trigger\tBus ID\t IRQ\tAPIC ID\tPIN#*/\n" );
-    for ( t = totalSize, c = count; c; c-- ) {
+    for ( c = count; c; c-- ) {
 	if ( readType() == 4 )
 	    lintEntry();
         totalSize -= basetableEntryTypes[ 4 ].length;




More information about the coreboot mailing list