Remove condition which can never be true as the previous loop

is never exited while remote == NULL.

Reported by:	Coverity
Approved by:	bapt
MFC after:	2 days
This commit is contained in:
bdrewery 2013-11-05 13:36:05 +00:00
parent cb6df3f35c
commit e6d38ec2e5

View File

@ -233,9 +233,6 @@ fetch_to_fd(const char *url, char *path)
}
}
if (remote == NULL)
goto fetchfail;
while (done < st.size) {
if ((r = fread(buf, 1, sizeof(buf), remote)) < 1)
break;