Skip to content

Commit

Permalink
validation: fix compilation error
Browse files Browse the repository at this point in the history
Fix compilation errors due to uninitialized variables.

Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
  • Loading branch information
ashwinyes committed Sep 6, 2023
1 parent a2085dd commit 2a8104f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/validation/api/buffer/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static void buffer_test_user_area(void)

for (i = 0; i < num; i++) {
odp_event_t ev;
int flag;
int flag = 0;

buffer[i] = odp_buffer_alloc(pool);

Expand Down
2 changes: 1 addition & 1 deletion test/validation/api/dma/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ static void test_dma_compl_user_area(void)

for (i = 0; i < num; i++) {
odp_event_t ev;
int flag;
int flag = 0;

compl_evs[i] = odp_dma_compl_alloc(pool);

Expand Down
2 changes: 1 addition & 1 deletion test/validation/api/ipsec/ipsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ static void ipsec_status_event_handle(odp_event_t ev_status,
odp_ipsec_sa_t sa,
enum ipsec_test_sa_expiry sa_expiry)
{
int flag;
int flag = 0;
odp_ipsec_status_t status = {
.id = 0,
.sa = ODP_IPSEC_SA_INVALID,
Expand Down
2 changes: 1 addition & 1 deletion test/validation/api/timer/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static void timer_test_timeout_user_area(void)

for (i = 0; i < num; i++) {
odp_event_t ev;
int flag;
int flag = 0;

tmo[i] = odp_timeout_alloc(pool);

Expand Down

0 comments on commit 2a8104f

Please sign in to comment.