mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:23:32 +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,
|
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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue