Skip to content

Commit

Permalink
Merge pull request #5624 from osalyk/fix_map_posix
Browse files Browse the repository at this point in the history
pmem2: remove unnecessary #ifndef
  • Loading branch information
janekmi authored May 10, 2023
2 parents 8b16695 + a3d39fe commit 5bfd7d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libpmem2/map_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,10 @@ pmem2_map_delete(struct pmem2_map **map_ptr)
if (ret)
return ret;

#ifndef _WIN32
if (map->source.type == PMEM2_SOURCE_FD) {
VALGRIND_REMOVE_PMEM_MAPPING(map_addr, map_len);
}
#endif

/*
* when reserved_length==0 mapping is created by pmem2_map_from_existing
* such mappings are provided by the users and shouldn't be unmapped
Expand Down

0 comments on commit 5bfd7d9

Please sign in to comment.