From b0869a793a15727bad9d658b1f01e23fe470eba8 Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 28 May 2017 00:28:11 +0000 Subject: [PATCH] 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 --- lib/libgeom/geom_stats.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libgeom/geom_stats.c b/lib/libgeom/geom_stats.c index 368a85e6933..c87dd310bf7 100644 --- a/lib/libgeom/geom_stats.c +++ b/lib/libgeom/geom_stats.c @@ -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) { -- 2.45.0