mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Remove one useless variable.
This commit is contained in:
parent
7c7a6f22ca
commit
9961e27d73
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99126
@ -150,7 +150,7 @@ ether_output(ifp, m, dst, rt0)
|
||||
u_char esrc[6], edst[6];
|
||||
register struct rtentry *rt;
|
||||
register struct ether_header *eh;
|
||||
int off, loop_copy = 0;
|
||||
int loop_copy = 0;
|
||||
int hlen; /* link layer header lenght */
|
||||
struct arpcom *ac = IFP2AC(ifp);
|
||||
|
||||
@ -187,7 +187,6 @@ ether_output(ifp, m, dst, rt0)
|
||||
case AF_INET:
|
||||
if (!arpresolve(ifp, rt, m, dst, edst, rt0))
|
||||
return (0); /* if not yet resolved */
|
||||
off = m->m_pkthdr.len - m->m_len;
|
||||
type = htons(ETHERTYPE_IP);
|
||||
break;
|
||||
#endif
|
||||
@ -197,7 +196,6 @@ ether_output(ifp, m, dst, rt0)
|
||||
/* Something bad happened */
|
||||
return(0);
|
||||
}
|
||||
off = m->m_pkthdr.len - m->m_len;
|
||||
type = htons(ETHERTYPE_IPV6);
|
||||
break;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user