[fix][ci]Fixed CI compilation failure in sal/src/sal_socket.c

This commit is contained in:
Rbb666 authored and R b b666 committed 2025-09-09 16:42:16 +08:00
1 parent e1c1a07c48
commit b525d2c535
1 file changed
-3
-3
View File
@@ -669,7 +669,6 @@ int sal_bind(int socket, const struct sockaddr *name, socklen_t namelen)
{
struct sal_socket *sock;
struct sal_proto_family *pf;
struct sockaddr_un *addr_un = RT_NULL;
ip_addr_t input_ipaddr;
RT_ASSERT(name);
@@ -677,8 +676,6 @@ int sal_bind(int socket, const struct sockaddr *name, socklen_t namelen)
/* get the socket object by socket descriptor */
SAL_SOCKET_OBJ_GET(sock, socket);
addr_un = (struct sockaddr_un *)name;
#define IS_INET_ADDR_FAMILY(_af) ((_af) == AF_INET) || ((_af) == AF_INET6)
if (IS_INET_ADDR_FAMILY(name->sa_family))
{