Skip to content

Commit

Permalink
pmem2: (+pmem) fix ppc_flush_msync
Browse files Browse the repository at this point in the history
  • Loading branch information
pbalcer committed Jun 19, 2020
1 parent 17d5872 commit 19e109d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libpmem2/ppc64/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ppc_flush(const void *addr, size_t size)
}

static void
ppc_flush_msync(const void *addr, size_t size)
ppc_flush_msync(const void *addr, size_t len)
{
LOG(15, "addr %p len %zu", addr, len);
/* this implementation is copy of pmem_msync */
Expand All @@ -90,8 +90,7 @@ ppc_flush_msync(const void *addr, size_t size)
*/
VALGRIND_DO_DISABLE_ERROR_REPORTING;

int ret;
if ((ret = msync((void *)uptr, len, MS_SYNC)) < 0)
if (msync((void *)uptr, len, MS_SYNC) < 0)
ERR("!msync");

VALGRIND_DO_ENABLE_ERROR_REPORTING;
Expand Down

0 comments on commit 19e109d

Please sign in to comment.