My change 9b855166e (tee: prefer file descriptors over streams,
2026-03-14) changed the type of SIZE to be unsigned instead of signed
due the the difference in function prorotypes for fwrite and write.
That makes this affirm call irrelevant.
Also, like in full_write, we can trust that write() will return a
value less than or equal to SIZE. So there is no need to check for
wrapping.
-- 8< --
* src/iopoll.c (write_wait): Don't check that an unsigned integer is
always great than or equal to zero since that is always true.
---
src/iopoll.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/iopoll.c b/src/iopoll.c
index ebeebf85c..de20bc8d9 100644
--- a/src/iopoll.c
+++ b/src/iopoll.c
@@ -219,7 +219,6 @@ write_wait (int fd, void const *buffer, size_t size)
written = 0;
size -= written;
- affirm (size >= 0);
if (size <= 0) /* everything written */
return true;
--
2.53.0