From c240bd8cf8b35701de48ebaaa18e74c6c907c23e Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Thu, 10 Jun 2004 00:04:16 +0000 Subject: [PATCH] - 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. --- sys/dev/gem/if_gem.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c index f00d8d3418ac..60c3dfb24dba 100644 --- a/sys/dev/gem/if_gem.c +++ b/sys/dev/gem/if_gem.c @@ -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;