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: Karoly Kemeny <karoly.kemeny@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Karoly Kemeny 2014-07-27 12:29:07 +02:00 committed by David S. Miller
parent ad025a56a5
commit c54a5e0247
1 changed files with 1 additions and 1 deletions

View File

@ -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;