svn commit: r236846 - in head/sys/arm: at91 econa xscale/i80321 xscale/pxa

Andrew Turner andrew at FreeBSD.org
Sun Jun 10 10:40:23 UTC 2012


Author: andrew
Date: Sun Jun 10 10:40:22 2012
New Revision: 236846
URL: http://svn.freebsd.org/changeset/base/236846

Log:
  Remove an unneeded increment from initarm. The variable is uninitialised,
  is not used in this part of the function and correctly initialised later
  when it is used.

Modified:
  head/sys/arm/at91/at91_machdep.c
  head/sys/arm/econa/econa_machdep.c
  head/sys/arm/xscale/i80321/ep80219_machdep.c
  head/sys/arm/xscale/pxa/pxa_machdep.c

Modified: head/sys/arm/at91/at91_machdep.c
==============================================================================
--- head/sys/arm/at91/at91_machdep.c	Sun Jun 10 10:37:21 2012	(r236845)
+++ head/sys/arm/at91/at91_machdep.c	Sun Jun 10 10:40:22 2012	(r236846)
@@ -426,7 +426,6 @@ initarm(struct arm_boot_params *abp)
 			    kernel_pt_table[loop].pv_va - KERNVIRTADDR +
 			    KERNPHYSADDR;
 		}
-		i++;
 	}
 	/*
 	 * Allocate a page for the system page mapped to V0x00000000

Modified: head/sys/arm/econa/econa_machdep.c
==============================================================================
--- head/sys/arm/econa/econa_machdep.c	Sun Jun 10 10:37:21 2012	(r236845)
+++ head/sys/arm/econa/econa_machdep.c	Sun Jun 10 10:40:22 2012	(r236846)
@@ -230,7 +230,6 @@ initarm(struct arm_boot_params *abp)
 			    kernel_pt_table[loop].pv_va - KERNVIRTADDR +
 			    KERNPHYSADDR;
 		}
-		i++;
 	}
 	/*
 	 * Allocate a page for the system page mapped to V0x00000000

Modified: head/sys/arm/xscale/i80321/ep80219_machdep.c
==============================================================================
--- head/sys/arm/xscale/i80321/ep80219_machdep.c	Sun Jun 10 10:37:21 2012	(r236845)
+++ head/sys/arm/xscale/i80321/ep80219_machdep.c	Sun Jun 10 10:40:22 2012	(r236846)
@@ -225,7 +225,6 @@ initarm(struct arm_boot_params *abp)
 			kernel_pt_table[loop].pv_va = 
 			    kernel_pt_table[loop].pv_pa + 0x20000000;
 		}
-		i++;
 	}
 	freemem_pt = freemempos;
 	freemempos = 0xa0100000;

Modified: head/sys/arm/xscale/pxa/pxa_machdep.c
==============================================================================
--- head/sys/arm/xscale/pxa/pxa_machdep.c	Sun Jun 10 10:37:21 2012	(r236845)
+++ head/sys/arm/xscale/pxa/pxa_machdep.c	Sun Jun 10 10:40:22 2012	(r236846)
@@ -208,7 +208,6 @@ initarm(struct arm_boot_params *abp)
 			kernel_pt_table[loop].pv_va = 
 			    kernel_pt_table[loop].pv_pa + 0x20000000;
 		}
-		i++;
 	}
 	freemem_pt = freemempos;
 	freemempos = 0xa0100000;


More information about the svn-src-all mailing list