Skip to content

Commit

Permalink
Fix comparison to uninitialized variable (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thompson2 authored Feb 23, 2024
1 parent ef20f94 commit e87f398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/afu_types/01_pim_ifc/dma/sw/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ int run_basic_ddr_dma_test(fpga_handle accel_handle, int transfer_size, bool ver
if (s_is_ase_sim)
assert(transfer_size <= TEST_BUFFER_SIZE_ASE);
else
assert(test_buffer_size <= TEST_BUFFER_SIZE_HW);
assert(transfer_size <= TEST_BUFFER_SIZE_HW);

test_buffer_size = transfer_size;

Expand Down

0 comments on commit e87f398

Please sign in to comment.