From e87f39842a60aa4bae4ac31a853f6b51e6d538d7 Mon Sep 17 00:00:00 2001 From: Andrew Thompson <132502889+a-thompson2@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:43:04 -0500 Subject: [PATCH] Fix comparison to uninitialized variable (#20) --- tutorial/afu_types/01_pim_ifc/dma/sw/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/afu_types/01_pim_ifc/dma/sw/dma.c b/tutorial/afu_types/01_pim_ifc/dma/sw/dma.c index 7325080..3e82c12 100644 --- a/tutorial/afu_types/01_pim_ifc/dma/sw/dma.c +++ b/tutorial/afu_types/01_pim_ifc/dma/sw/dma.c @@ -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;