Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 15:38:26 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265823 - head/sys/powerpc/powerpc
Message-ID:  <201405101538.s4AFcQmC079235@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sat May 10 15:38:26 2014
New Revision: 265823
URL: http://svnweb.freebsd.org/changeset/base/265823

Log:
  Simplify code slightly. Passing an array by &array[0] does work, but is
  silly.

Modified:
  head/sys/powerpc/powerpc/platform.c

Modified: head/sys/powerpc/powerpc/platform.c
==============================================================================
--- head/sys/powerpc/powerpc/platform.c	Sat May 10 15:34:32 2014	(r265822)
+++ head/sys/powerpc/powerpc/platform.c	Sat May 10 15:38:26 2014	(r265823)
@@ -116,7 +116,7 @@ mem_regions(struct mem_region **phys, in
 	int i, j, still_merging;
 
 	if (npregions == 0) {
-		PLATFORM_MEM_REGIONS(plat_obj, &pregions[0], &npregions,
+		PLATFORM_MEM_REGIONS(plat_obj, pregions, &npregions,
 		    aregions, &naregions);
 		qsort(pregions, npregions, sizeof(*pregions), mr_cmp);
 		qsort(aregions, naregions, sizeof(*aregions), mr_cmp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405101538.s4AFcQmC079235>