Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;