mirror of
https://github.com/curl/curl.git
synced 2026-06-09 23:24:18 +03:00
[easy] removed unnecessary var 'result', return 'CURLE_OK' directly
This commit is contained in:
parent
5081f4f5a2
commit
240b2c3e81
1 changed files with 1 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue