summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2023-03-14 12:50:23 +0100
committerSander Vrijders <sander@ouroboros.rocks>2023-03-18 17:12:27 +0100
commitbb1cd184777b853a3d76f7fbaa26c40dd8d55a0e (patch)
treee0f9f27bd26ff90eda5c4781eb4a691acd032bbb
parentee196e9a00475a029018181f8d6a00106ee462ce (diff)
downloadouroboros-bb1cd184777b853a3d76f7fbaa26c40dd8d55a0e.tar.gz
ouroboros-bb1cd184777b853a3d76f7fbaa26c40dd8d55a0e.zip
lib: Remove while loop around frcti_window_wait
That while loop is not needed anymore. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r--src/lib/dev.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index b0c0175c..293d055e 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1347,10 +1347,9 @@ ssize_t flow_write(int fd,
return -EAGAIN;
idx = shm_rdrbuff_alloc(ai.rdrb, count, &ptr, &sdb);
} else {
- while ((ret = frcti_window_wait(flow->frcti, abstime)) < 0) {
- if (ret < 0)
- return ret;
- }
+ ret = frcti_window_wait(flow->frcti, abstime);
+ if (ret < 0)
+ return ret;
idx = shm_rdrbuff_alloc_b(ai.rdrb, count, &ptr, &sdb, abstime);
}