From 170fb1715a467a591199dca672b88040ca1285bb Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 3 Dec 2014 15:24:37 -0600 Subject: [PATCH] FS-7046: fix some unreachable code warnings --- src/mod/endpoints/mod_verto/mod_verto.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 0e5d7c5d04..fe80c0d4b0 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3760,12 +3760,10 @@ static ws_socket_t prepare_socket(int ip, uint16_t port) if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { die("Bind Error!\n"); - return ws_sock_invalid; } if (listen(sock, MAXPENDING) < 0) { die("Listen error\n"); - return ws_sock_invalid; } return sock;