net: Remove protocol argument from si_setup callback

since the implementor could get the same value from socket::s_proto

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-02-07 01:55:44 +08:00
committed by archer
parent 1e7014262c
commit 0ef073573a
15 changed files with 44 additions and 60 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ struct pollfd; /* Forward reference */
struct sock_intf_s
{
CODE int (*si_setup)(FAR struct socket *psock, int protocol);
CODE int (*si_setup)(FAR struct socket *psock);
CODE sockcaps_t (*si_sockcaps)(FAR struct socket *psock);
CODE void (*si_addref)(FAR struct socket *psock);
CODE int (*si_bind)(FAR struct socket *psock,