aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-11 09:27:47 -0600
committerJens Axboe <axboe@kernel.dk>2024-03-11 09:27:47 -0600
commitda0c6168d1d84ab590b929de9db42e61c39b60af (patch)
tree720326075762d090135e1f870af4c2f14df37e08
parent76ad5f426a26bbafcd494a57ad3a92a88a8eaf50 (diff)
downloadliburing-da0c6168d1d84ab590b929de9db42e61c39b60af.tar.gz
examples/proxy: remove redundant asserts
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--examples/proxy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/proxy.c b/examples/proxy.c
index e1ee4ab5..37ca812f 100644
--- a/examples/proxy.c
+++ b/examples/proxy.c
@@ -1145,8 +1145,6 @@ start_close:
}
vlog("%d: recv: bid=%d, res=%d, cflags=%x\n", c->tid, bid, cqe->res, cqe->flags);
- assert(cqe->res);
-
/*
* If we're a sink, we're done here. Just replenish the buffer back
* to the pool. For proxy mode, we will send the data to the other
@@ -1288,7 +1286,6 @@ static void prep_next_send(struct io_uring *ring, struct conn *c,
if (!msg_vec(imsg)->iov_len)
return;
- assert(msg_vec(imsg)->iov_len);
imsg->msg.msg_iov = msg_vec(imsg)->iov;
imsg->msg.msg_iovlen = msg_vec(imsg)->iov_len;
msg_vec(imsg)->iov_len = 0;