summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg/pkg.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-05-30 21:23:41 +0000
committerbapt <bapt@FreeBSD.org>2015-05-30 21:23:41 +0000
commit644eb326fc4976c7ca5ee8e499a5c17a692f33f5 (patch)
tree734c3a705c0eb7b866f9d731654f156c6e9d1435 /usr.sbin/pkg/pkg.c
parent80880ee480bdc5f5a959b76200002bf202ab4373 (diff)
downloadFreeBSD-src-644eb326fc4976c7ca5ee8e499a5c17a692f33f5.zip
FreeBSD-src-644eb326fc4976c7ca5ee8e499a5c17a692f33f5.tar.gz
MFC: r257701 (by bdrewery)
Remove condition which can never be true as the previous loop is never exited while remote == NULL.
Diffstat (limited to 'usr.sbin/pkg/pkg.c')
-rw-r--r--usr.sbin/pkg/pkg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index 09be1c5..d19d139 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -238,9 +238,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;
OpenPOWER on IntegriCloud