Skip to content

Commit e87f398

Browse files
authored
Fix comparison to uninitialized variable (#20)
1 parent ef20f94 commit e87f398

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tutorial/afu_types/01_pim_ifc/dma/sw

tutorial/afu_types/01_pim_ifc/dma/sw/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ int run_basic_ddr_dma_test(fpga_handle accel_handle, int transfer_size, bool ver
299299
if (s_is_ase_sim)
300300
assert(transfer_size <= TEST_BUFFER_SIZE_ASE);
301301
else
302-
assert(test_buffer_size <= TEST_BUFFER_SIZE_HW);
302+
assert(transfer_size <= TEST_BUFFER_SIZE_HW);
303303

304304
test_buffer_size = transfer_size;
305305

0 commit comments

Comments
 (0)