coverity 83671 dead code
authorAndy Green <andy.green@linaro.org>
Sun, 30 Nov 2014 04:48:22 +0000 (12:48 +0800)
committerAndy Green <andy.green@linaro.org>
Sun, 30 Nov 2014 04:48:22 +0000 (12:48 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-unix.c

index a43d57b..467e394 100644 (file)
@@ -356,8 +356,6 @@ interface_to_sa(struct libwebsocket_context *context,
                        break;
 #ifdef LWS_USE_IPV6
                case AF_INET6:
-                       if (rc >= 0)
-                               break;
                        memcpy(&addr6->sin6_addr,
                          &((struct sockaddr_in6 *)ifc->ifa_addr)->sin6_addr,
                                                       sizeof(struct in6_addr));