Skip to content

Commit

Permalink
ipv4: clean up cast warning in do_ip_getsockopt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Karoly Kemeny authored and David S. Miller committed Jul 29, 2014
1 parent ad025a5 commit c54a5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ip_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c54a5e0

Please sign in to comment.