svn commit: r314900 - head/sys/net
Andrey V. Elsukov
ae at FreeBSD.org
Wed Mar 8 08:09:42 UTC 2017
Author: ae
Date: Wed Mar 8 08:09:41 2017
New Revision: 314900
URL: https://svnweb.freebsd.org/changeset/base/314900
Log:
Remove now unneded cast.
Modified:
head/sys/net/if_stf.c
Modified: head/sys/net/if_stf.c
==============================================================================
--- head/sys/net/if_stf.c Wed Mar 8 07:59:45 2017 (r314899)
+++ head/sys/net/if_stf.c Wed Mar 8 08:09:41 2017 (r314900)
@@ -340,8 +340,7 @@ stf_encapcheck(const struct mbuf *m, int
if (proto != IPPROTO_IPV6)
return 0;
- /* LINTED const cast */
- m_copydata((struct mbuf *)(uintptr_t)m, 0, sizeof(ip), (caddr_t)&ip);
+ m_copydata(m, 0, sizeof(ip), (caddr_t)&ip);
if (ip.ip_v != 4)
return 0;
More information about the svn-src-all
mailing list