summary refs log tree commit diff
path: root/sysdeps/posix/getaddrinfo.c
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/posix/getaddrinfo.c
parent086df229eef36041cae4a633c6fde6150f18d75e (diff)
downloadglibc-0df595b23a829c9169ec418a19eef9006b4ae801.tar.gz
glibc-0df595b23a829c9169ec418a19eef9006b4ae801.tar.xz
glibc-0df595b23a829c9169ec418a19eef9006b4ae801.zip
getaddrinfo: Remove unreachable return statement from gaih_inet
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-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 699411cc92..09f85fc472 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);