svn commit: r319019 - head/lib/libgeom

Ngie Cooper ngie at FreeBSD.org
Sun May 28 00:28:13 UTC 2017


Author: ngie
Date: Sun May 28 00:28:11 2017
New Revision: 319019
URL: https://svnweb.freebsd.org/changeset/base/319019

Log:
  Remove getpagesize(3) error checking added in r317312
  
  getpagesize(3) no longer fails as of r317436.
  
  MFC after:	3 days
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/libgeom/geom_stats.c

Modified: head/lib/libgeom/geom_stats.c
==============================================================================
--- head/lib/libgeom/geom_stats.c	Sun May 28 00:25:44 2017	(r319018)
+++ head/lib/libgeom/geom_stats.c	Sun May 28 00:28:11 2017	(r319019)
@@ -87,8 +87,6 @@ geom_stats_open(void)
 	if (statsfd < 0)
 		return (errno);
 	pagesize = getpagesize();
-	if (pagesize == -1)
-		return (errno);
 	spp = pagesize / sizeof(struct devstat);
 	p = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, statsfd, 0);
 	if (p == MAP_FAILED) {


More information about the svn-src-all mailing list