Skip to content

Commit fc174ed

Browse files
committed
Fix devdax_alloc
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 84895a2 commit fc174ed

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/provider/provider_devdax_memory.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,6 @@ static umf_result_t devdax_alloc(void *provider, size_t size, size_t alignment,
242242
alignment = ALIGN_UP(alignment, DEVDAX_PAGE_SIZE_2MB);
243243
}
244244

245-
if (IS_NOT_ALIGNED(size, DEVDAX_PAGE_SIZE_2MB)) {
246-
size = ALIGN_UP(size, DEVDAX_PAGE_SIZE_2MB);
247-
}
248-
249245
devdax_memory_provider_t *devdax_provider =
250246
(devdax_memory_provider_t *)provider;
251247

0 commit comments

Comments
 (0)