From 240b2c3e816dbd665e89abe3a2e21d7eb6bbcb2c Mon Sep 17 00:00:00 2001 From: Gabriel Marin Date: Wed, 20 Aug 2025 14:19:05 +0300 Subject: [PATCH] [easy] removed unnecessary var 'result', return 'CURLE_OK' directly --- lib/easy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/easy.c b/lib/easy.c index e60f29a188..b9b8d52754 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -576,8 +576,6 @@ static CURLcode poll_fds(struct events *ev, const unsigned int numfds, int *pollrc) { - CURLcode result = CURLE_OK; - if(numfds) { /* wait for activity or timeout */ #if DEBUG_EV_POLL @@ -599,7 +597,7 @@ static CURLcode poll_fds(struct events *ev, if(ev->ms > 0) curlx_wait_ms(ev->ms); } - return result; + return CURLE_OK; } /* wait_or_timeout()