Skip to content

Commit 178a285

Browse files
committed
Remove redundant size check
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent 6dc8613 commit 178a285

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/mmio.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ static ocxl_err global_mmio_map(ocxl_afu *afu, size_t size, int prot, uint64_t f
153153
return rc;
154154
}
155155

156-
if (size == 0) {
157-
size = afu->global_mmio.length;
158-
}
159-
160156
void *addr = mmap(NULL, size, prot, MAP_SHARED, afu->global_mmio_fd, offset);
161157
if (addr == MAP_FAILED) {
162158
ocxl_err rc = OCXL_NO_MEM;

0 commit comments

Comments
 (0)