Remove dead iovcnt==0 check — no caller passes 0

This commit is contained in:
J. Nick Koston
2026-03-16 12:28:37 -10:00
parent 067c9ad1fa
commit 2893788d4b
@@ -105,9 +105,6 @@ APIError APIFrameHelper::write_raw_(const struct iovec *iov, int iovcnt, uint16_
// Returns APIError::OK if all data was sent or successfully queued.
// Returns APIError::SOCKET_WRITE_FAILED if socket write failed, and sets state to FAILED.
if (iovcnt == 0)
return APIError::OK; // Nothing to do, success
#ifdef HELPER_LOG_PACKETS
for (int i = 0; i < iovcnt; i++) {
LOG_PACKET_SENDING(reinterpret_cast<uint8_t *>(iov[i].iov_base), iov[i].iov_len);