Merge branch 'improvement/fix-warnings-if-NDEBUG-enabled' of https://github.com/dpron...
[fio.git] / t / read-to-pipe-async.c
index 76c64ab9c4e9221faffa3eab445ba9c596a1f5c1..de98d03228f3e3f52134bfda535152512d6a0f94 100644 (file)
@@ -263,10 +263,8 @@ static void *writer_fn(void *data)
        while (!(seq < 0) && (!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)