diff options
author | Karoly Kemeny <karoly.kemeny@gmail.com> | 2014-07-27 10:29:07 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-29 23:31:16 (GMT) |
commit | c54a5e024777a2fd4b01239d58cf119901e8e5ed (patch) | |
tree | 17f8bda8217ed72e437329edfe95b153e2f7fc8b /net | |
parent | ad025a56a5487d5d443ee790c04517581d39b21b (diff) | |
download | linux-c54a5e024777a2fd4b01239d58cf119901e8e5ed.tar.xz |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 64741b9..5cb830c 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -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; |