提交 9faefb6d 编写于 作者: A Alan Cox 提交者: David S. Miller

[DCCP]: Fix sparse warnings.

No actual bugs that I can see just a couple of unmarked casts
getting annoying in my debug log files.
Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c427d274
...@@ -484,7 +484,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname, ...@@ -484,7 +484,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
err = -EINVAL; err = -EINVAL;
else else
err = dccp_setsockopt_change(sk, DCCPO_CHANGE_L, err = dccp_setsockopt_change(sk, DCCPO_CHANGE_L,
(struct dccp_so_feat *) (struct dccp_so_feat __user *)
optval); optval);
break; break;
...@@ -493,7 +493,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname, ...@@ -493,7 +493,7 @@ static int do_dccp_setsockopt(struct sock *sk, int level, int optname,
err = -EINVAL; err = -EINVAL;
else else
err = dccp_setsockopt_change(sk, DCCPO_CHANGE_R, err = dccp_setsockopt_change(sk, DCCPO_CHANGE_R,
(struct dccp_so_feat *) (struct dccp_so_feat __user *)
optval); optval);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册