Commit c54a5e02 authored by Karoly Kemeny's avatar Karoly Kemeny Committed by David S. Miller

ipv4: clean up cast warning in do_ip_getsockopt

Sparse warns because of implicit pointer cast.

v2: subject line correction, space between "void" and "*"
Signed-off-by: default avatarKaroly Kemeny <karoly.kemeny@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ad025a56
......@@ -1319,7 +1319,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
if (sk->sk_type != SOCK_STREAM)
return -ENOPROTOOPT;
msg.msg_control = optval;
msg.msg_control = (__force void *) optval;
msg.msg_controllen = len;
msg.msg_flags = flags;
......
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