diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-03-14 12:50:23 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-03-18 17:12:27 +0100 |
commit | bb1cd184777b853a3d76f7fbaa26c40dd8d55a0e (patch) | |
tree | e0f9f27bd26ff90eda5c4781eb4a691acd032bbb /src | |
parent | ee196e9a00475a029018181f8d6a00106ee462ce (diff) | |
download | ouroboros-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dev.c | 7 |
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); } |