net: socket: prepare to cleanup net_init_socket()
commit006c3fa74c3edb978ff46d2851699e9a95609da5
authorLaurent Vivier <lvivier@redhat.com>
Fri, 9 Jun 2023 07:27:46 +0000 (9 09:27 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 7 Jul 2023 08:35:12 +0000 (7 16:35 +0800)
treec4f36a83c55e76b2f5089e177c371251384b27fc
parent71e11da1facdf08c91b3763bd9a72c2121f2bbb6
net: socket: prepare to cleanup net_init_socket()

Use directly net_socket_fd_init_stream() and net_socket_fd_init_dgram()
when the socket type is already known.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/socket.c