- Remove a variable no longer used after the conversion to ether_crc32_le().

- While here, save on another one no longer really necessary after the
  conversion.
This commit is contained in:
Marius Strobl 2004-06-10 00:04:16 +00:00
parent f22c26808e
commit c240bd8cf8

View File

@ -1844,13 +1844,11 @@ gem_setladrf(sc)
{
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct ifmultiaddr *inm;
struct sockaddr_dl *sdl;
bus_space_tag_t t = sc->sc_bustag;
bus_space_handle_t h = sc->sc_h;
u_int32_t crc;
u_int32_t hash[16];
u_int32_t v;
int len;
int i;
/* Get current RX configuration */
@ -1890,8 +1888,8 @@ gem_setladrf(sc)
TAILQ_FOREACH(inm, &sc->sc_arpcom.ac_if.if_multiaddrs, ifma_link) {
if (inm->ifma_addr->sa_family != AF_LINK)
continue;
sdl = (struct sockaddr_dl *)inm->ifma_addr;
crc = ether_crc32_le(LLADDR(sdl), ETHER_ADDR_LEN);
crc = ether_crc32_le(LLADDR((struct sockaddr_dl *)
inm->ifma_addr), ETHER_ADDR_LEN);
/* Just want the 8 most significant bits. */
crc >>= 24;