From 2893788d4b50a4f16ba3bddd14b9612a1d195978 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 16 Mar 2026 12:28:37 -1000 Subject: [PATCH] =?UTF-8?q?Remove=20dead=20iovcnt=3D=3D0=20check=20?= =?UTF-8?q?=E2=80=94=20no=20caller=20passes=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esphome/components/api/api_frame_helper.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/esphome/components/api/api_frame_helper.cpp b/esphome/components/api/api_frame_helper.cpp index de9d0e703d8..299939450d3 100644 --- a/esphome/components/api/api_frame_helper.cpp +++ b/esphome/components/api/api_frame_helper.cpp @@ -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(iov[i].iov_base), iov[i].iov_len);