Fix Remove unreachable code in OS_SocketOpen_Impl for BSD socket
@@ -126,10 +126,7 @@ int32 OS_SocketOpen_Impl(const OS_object_token_t *token)
return OS_ERR_NOT_IMPLEMENTED;
}
- switch (stream->socket_domain)
- {
- case OS_SocketDomain_INET:
- case OS_SocketDomain_INET6:
+ /* Only AF_INET* at this point, can add cases if support is expanded */
switch (stream->socket_type)
{
case OS_SocketType_DATAGRAM:
@@ -138,12 +135,6 @@ int32 OS_SocketOpen_Impl(const OS_object_token_t *token)
case OS_SocketType_STREAM:
os_proto = IPPROTO_TCP;
break;
- default:
- break;
- }
- break;
- default:
- break;
}
impl->fd = socket(os_domain, os_type, os_proto);
