[easy] removed unnecessary var 'result', return 'CURLE_OK' directly

This commit is contained in:
Gabriel Marin 2025-08-20 14:19:05 +03:00
parent 5081f4f5a2
commit 240b2c3e81

View file

@ -576,8 +576,6 @@ static CURLcode poll_fds(struct events *ev,
const unsigned int numfds, const unsigned int numfds,
int *pollrc) int *pollrc)
{ {
CURLcode result = CURLE_OK;
if(numfds) { if(numfds) {
/* wait for activity or timeout */ /* wait for activity or timeout */
#if DEBUG_EV_POLL #if DEBUG_EV_POLL
@ -599,7 +597,7 @@ static CURLcode poll_fds(struct events *ev,
if(ev->ms > 0) if(ev->ms > 0)
curlx_wait_ms(ev->ms); curlx_wait_ms(ev->ms);
} }
return result; return CURLE_OK;
} }
/* wait_or_timeout() /* wait_or_timeout()