t/read-to-pipe-async: remove dead code
authorJens Axboe <axboe@kernel.dk>
Wed, 10 May 2023 15:16:01 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 May 2023 15:16:01 +0000 (09:16 -0600)
'work' will be overwritten shortly, no point in clearing it to NULL.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/read-to-pipe-async.c

index 586e3c95bfd339c276974bc3e641e19837f486d7..569fc62ae66f535d96a63ed01a78ec705a25a405 100644 (file)
@@ -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)