diff options
author | xu xin <xu.xin16@zte.com.cn> | 2022-10-20 08:54:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-24 13:43:46 +0200 |
commit | 233baf9a1bc46f18ad3bec688f52ea5f818a8a25 (patch) | |
tree | ae3758059c585e63cc0cd0be93be9c60f3e42fe1 /net/ipv4/ip_sockglue.c | |
parent | net: fec: Add support for periodic output signal of PPS (diff) | |
download | linux-233baf9a1bc46f18ad3bec688f52ea5f818a8a25.tar.xz linux-233baf9a1bc46f18ad3bec688f52ea5f818a8a25.zip |
net: remove useless parameter of __sock_cmsg_send
The parameter 'msg' has never been used by __sock_cmsg_send, so we can remove it
safely.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Reviewed-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
Acked-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 6e19cad154f5..5f16807d3235 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -267,7 +267,7 @@ int ip_cmsg_send(struct sock *sk, struct msghdr *msg, struct ipcm_cookie *ipc, } #endif if (cmsg->cmsg_level == SOL_SOCKET) { - err = __sock_cmsg_send(sk, msg, cmsg, &ipc->sockc); + err = __sock_cmsg_send(sk, cmsg, &ipc->sockc); if (err) return err; continue; |