diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-02-17 07:52:45 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-02-17 07:52:45 +0000 |
commit | 0e50516f18587f40a1d0332ba0174031367ec8f0 (patch) | |
tree | 0d360d1eae7ded98b0383566a67e1fff2dcee5ef /sys/dev/pci/if_rl.c | |
parent | 0f4bc703c348f5de5a0716845f336d1551f706f7 (diff) |
no need for seperate variable to hold ethernet address... that's what
ac_enaddr is for
Diffstat (limited to 'sys/dev/pci/if_rl.c')
-rw-r--r-- | sys/dev/pci/if_rl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/if_rl.c b/sys/dev/pci/if_rl.c index 8f0cc8e9f37..58965a0a296 100644 --- a/sys/dev/pci/if_rl.c +++ b/sys/dev/pci/if_rl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rl.c,v 1.23 2001/02/03 05:46:17 mickey Exp $ */ +/* $OpenBSD: if_rl.c,v 1.24 2001/02/17 07:52:44 jason Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1259,7 +1259,6 @@ rl_attach(parent, self, aux) pci_chipset_tag_t pc = pa->pa_pc; pci_intr_handle_t ih; const char *intrstr = NULL; - u_int8_t enaddr[ETHER_ADDR_LEN]; struct ifnet *ifp = &sc->arpcom.ac_if; bus_addr_t iobase; bus_size_t iosize; @@ -1329,8 +1328,7 @@ rl_attach(parent, self, aux) rl_reset(sc); - rl_read_eeprom(sc, (caddr_t)&enaddr, RL_EE_EADDR, 3, 0); - bcopy(enaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); + rl_read_eeprom(sc, (caddr_t)sc->arpcom.ac_enaddr, RL_EE_EADDR, 3, 0); printf(" address %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); rl_read_eeprom(sc, (caddr_t)&rl_did, RL_EE_PCI_DID, 1, 0); |