aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-08-08 18:48:05 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-08-08 18:48:05 +0200
commit0df595b23a829c9169ec418a19eef9006b4ae801 (patch)
tree056d97d2d68f279308c6c08d3068b57fd7ffe7c8 /sysdeps
parent086df229eef36041cae4a633c6fde6150f18d75e (diff)
downloadglibc-0df595b23a829c9169ec418a19eef9006b4ae801.zip
glibc-0df595b23a829c9169ec418a19eef9006b4ae801.tar.gz
glibc-0df595b23a829c9169ec418a19eef9006b4ae801.tar.bz2
getaddrinfo: Remove unreachable return statement from gaih_inet
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/posix/getaddrinfo.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 699411c..09f85fc 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -420,13 +420,9 @@ gaih_inet (const char *name, const struct gaih_service *service,
alloca_account (sizeof (struct gaih_servtuple),
alloca_used);
- if ((rc = gaih_inet_serv (service->name,
- tp, req, newp, tmpbuf)))
- {
- if (rc)
- continue;
- return rc;
- }
+ if (gaih_inet_serv (service->name,
+ tp, req, newp, tmpbuf) != 0)
+ continue;
*pst = newp;
pst = &(newp->next);