Commit 2e26b6df authored by Zhengchao Shao's avatar Zhengchao Shao Committed by David S. Miller

ipv6: raw: remove useless input parameter in rawv6_get/seticmpfilter

The input parameter 'level' in rawv6_get/seticmpfilter is not used.
Therefore, remove it.
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 26311cd1
...@@ -934,7 +934,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) ...@@ -934,7 +934,7 @@ static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
goto done; goto done;
} }
static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, static int rawv6_seticmpfilter(struct sock *sk, int optname,
sockptr_t optval, int optlen) sockptr_t optval, int optlen)
{ {
switch (optname) { switch (optname) {
...@@ -951,7 +951,7 @@ static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, ...@@ -951,7 +951,7 @@ static int rawv6_seticmpfilter(struct sock *sk, int level, int optname,
return 0; return 0;
} }
static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, static int rawv6_geticmpfilter(struct sock *sk, int optname,
char __user *optval, int __user *optlen) char __user *optval, int __user *optlen)
{ {
int len; int len;
...@@ -1037,7 +1037,7 @@ static int rawv6_setsockopt(struct sock *sk, int level, int optname, ...@@ -1037,7 +1037,7 @@ static int rawv6_setsockopt(struct sock *sk, int level, int optname,
case SOL_ICMPV6: case SOL_ICMPV6:
if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
return -EOPNOTSUPP; return -EOPNOTSUPP;
return rawv6_seticmpfilter(sk, level, optname, optval, optlen); return rawv6_seticmpfilter(sk, optname, optval, optlen);
case SOL_IPV6: case SOL_IPV6:
if (optname == IPV6_CHECKSUM || if (optname == IPV6_CHECKSUM ||
optname == IPV6_HDRINCL) optname == IPV6_HDRINCL)
...@@ -1098,7 +1098,7 @@ static int rawv6_getsockopt(struct sock *sk, int level, int optname, ...@@ -1098,7 +1098,7 @@ static int rawv6_getsockopt(struct sock *sk, int level, int optname,
case SOL_ICMPV6: case SOL_ICMPV6:
if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
return -EOPNOTSUPP; return -EOPNOTSUPP;
return rawv6_geticmpfilter(sk, level, optname, optval, optlen); return rawv6_geticmpfilter(sk, optname, optval, optlen);
case SOL_IPV6: case SOL_IPV6:
if (optname == IPV6_CHECKSUM || if (optname == IPV6_CHECKSUM ||
optname == IPV6_HDRINCL) optname == IPV6_HDRINCL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment