Skip to content

Commit

Permalink
test: fix build error
Browse files Browse the repository at this point in the history
Fix build errors like "unused variable"

Signed-off-by: Zhangfei Gao <[email protected]>
Signed-off-by: 15859157387 <[email protected]>
  • Loading branch information
zhangfeigao authored and hzhuang1 committed Feb 1, 2024
1 parent 6077f43 commit 4a451be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/wd_mempool_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static void *sva_sec_cipher_async(void *arg)
int cnt = g_times;
handle_t h_sess;
int ret;
int j, i;
int j;

setup->alg = WD_CIPHER_AES;
setup->mode = WD_CIPHER_CBC;
Expand All @@ -658,15 +658,13 @@ static void *sva_sec_cipher_async(void *arg)
SEC_TST_PRT("test sec cipher set key is failed!\n");
goto out;;
}
i = cnt;
/* run task */
do {
try_do_again:
j = count % g_blknum;
req->src = pdata->bd_pool->bds[j].src;
req->dst = pdata->bd_pool->bds[j].dst;
ret = wd_do_cipher_async(h_sess, req);
i--;
if (ret == -EBUSY) { // busy
usleep(100);
goto try_do_again;
Expand Down

0 comments on commit 4a451be

Please sign in to comment.