sock_util: remove unneeded check
We loop while (server_sockfd == -1) so it's safe to assume that (server_sockfd != -1) once out of the loop.
This commit is contained in:
parent
11f820efa7
commit
337205eb08
@ -135,8 +135,6 @@ void server_bind(struct sock_server *serv, u16 port)
|
||||
server_sockfd = socSocket(AF_INET, SOCK_STREAM, 0);
|
||||
}
|
||||
|
||||
if(server_sockfd != -1)
|
||||
{
|
||||
struct sockaddr_in saddr;
|
||||
saddr.sin_family = AF_INET;
|
||||
saddr.sin_port = htons(port);
|
||||
@ -164,7 +162,6 @@ void server_bind(struct sock_server *serv, u16 port)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void server_run(struct sock_server *serv)
|
||||
{
|
||||
|
Reference in New Issue
Block a user