From 45bf2f40455c1377dafcbe9fd06b960008041783 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 10 May 2023 09:16:01 -0600 Subject: [PATCH] t/read-to-pipe-async: remove dead code 'work' will be overwritten shortly, no point in clearing it to NULL. Signed-off-by: Jens Axboe --- t/read-to-pipe-async.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/read-to-pipe-async.c b/t/read-to-pipe-async.c index 586e3c95..569fc62a 100644 --- a/t/read-to-pipe-async.c +++ b/t/read-to-pipe-async.c @@ -247,10 +247,8 @@ static void *writer_fn(void *data) while (!wt->thread.exit || !flist_empty(&wt->list)) { pthread_mutex_lock(&wt->thread.lock); - if (work) { + if (work) flist_add_tail(&work->list, &wt->done_list); - work = NULL; - } work = find_seq(wt, seq); if (work) -- 2.25.1