projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eba0c6
)
t/read-to-pipe-async: remove dead code
author
Jens Axboe
<axboe@kernel.dk>
Wed, 10 May 2023 15:16:01 +0000
(09:16 -0600)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/t/read-to-pipe-async.c
b/t/read-to-pipe-async.c
index 586e3c95bfd339c276974bc3e641e19837f486d7..569fc62ae66f535d96a63ed01a78ec705a25a405 100644
(file)
--- 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)