diff --git a/lib/bdev/nvme/blockdev_nvme.c b/lib/bdev/nvme/blockdev_nvme.c index ff2813e70..b99a9033c 100644 --- a/lib/bdev/nvme/blockdev_nvme.c +++ b/lib/bdev/nvme/blockdev_nvme.c @@ -791,10 +791,6 @@ queued_reset_sgl(void *ref, uint32_t sgl_offset) } } -#define min(a, b) (((a)<(b))?(a):(b)) - -#define _2MB_OFFSET(ptr) (((uintptr_t)ptr) & (0x200000 - 1)) - static int queued_next_sge(void *ref, void **address, uint32_t *length) { @@ -814,8 +810,6 @@ queued_next_sge(void *ref, void **address, uint32_t *length) *length -= bio->iov_offset; } - *length = min(*length, 0x200000 - _2MB_OFFSET(*address)); - bio->iov_offset += *length; if (bio->iov_offset == iov->iov_len) { bio->iovpos++;