diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2002-06-30 08:02:38 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2002-06-30 08:02:38 +0000 |
commit | 9961e27d73770e51b39cefb92c335f72b3321ab5 (patch) | |
tree | 1a97122cfeacaa89a3c3b04eea2833c358193df6 /sys/net | |
parent | 7c7a6f22ca35ece636c573608c22c198d9be6d04 (diff) | |
download | src-9961e27d73770e51b39cefb92c335f72b3321ab5.tar.gz src-9961e27d73770e51b39cefb92c335f72b3321ab5.zip |
Remove one useless variable.
Notes
Notes:
svn path=/head/; revision=99126
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_ethersubr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 4b040ab2e1fe..6a1a85d359ef 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -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 |