Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove redundant assignment (value enforced by previous call to xbt_assert).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 9 Apr 2018 12:08:57 +0000 (14:08 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 9 Apr 2018 13:34:47 +0000 (15:34 +0200)
src/smpi/internals/smpi_shared.cpp

index b01de8f..bc42b78 100644 (file)
@@ -198,7 +198,6 @@ void* smpi_shared_malloc_partial(size_t size, size_t* shared_block_offsets, int
 #ifndef MAP_HUGETLB /* If the system header don't define that mmap flag */
   xbt_assert(not use_huge_page,
              "Huge pages are not available on your system, you cannot use the smpi/shared-malloc-hugepage option.");
 #ifndef MAP_HUGETLB /* If the system header don't define that mmap flag */
   xbt_assert(not use_huge_page,
              "Huge pages are not available on your system, you cannot use the smpi/shared-malloc-hugepage option.");
-  use_huge_page = 0;
 #endif
   smpi_shared_malloc_blocksize = static_cast<unsigned long>(xbt_cfg_get_double("smpi/shared-malloc-blocksize"));
   void* mem;
 #endif
   smpi_shared_malloc_blocksize = static_cast<unsigned long>(xbt_cfg_get_double("smpi/shared-malloc-blocksize"));
   void* mem;