diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 100d88167759..896ae93fd263 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -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;