Merge pull request #1011 from Nanquitas/patch-2
sock_util: remove unneeded check
This commit is contained in:
commit
97ae106d8e
@ -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