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
This commit is contained in:
parent
73dcfb8ddc
commit
3d98877013
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user