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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to