diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-11-25 00:38:00 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-11-25 00:38:00 +0000 |
commit | 471a0b889d0a8eb9e84b95c4aa5499b7c1e0edc5 (patch) | |
tree | db7e89831e188e0acaa23a4ab3265894b63101f8 | |
parent | 7bc392ec84e9f8fabfad15540b39efbf806b95b6 (diff) |
don't bother setting error in bge_attach() when its not actually
being used for anything.
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 2775f55fb66..e904accddfa 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.97 2005/11/25 00:14:59 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.98 2005/11/25 00:37:59 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1722,7 +1722,6 @@ bge_attach(struct device *parent, struct device *self, void *aux) u_int32_t hwcfg = 0; u_int32_t mac_addr = 0; struct ifnet *ifp; - int error = 0; caddr_t kva; sc->bge_pa = *pa; @@ -1821,7 +1820,6 @@ bge_attach(struct device *parent, struct device *self, void *aux) if (bge_chipinit(sc)) { printf(": chip initialization failed\n"); - error = ENXIO; goto fail_2; } @@ -1840,7 +1838,6 @@ bge_attach(struct device *parent, struct device *self, void *aux) } else if (bge_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, BGE_EE_MAC_OFFSET + 2, ETHER_ADDR_LEN)) { printf(": failed to read station address\n"); - error = ENXIO; goto fail_2; } @@ -1891,7 +1888,6 @@ bge_attach(struct device *parent, struct device *self, void *aux) if (BGE_IS_JUMBO_CAPABLE(sc)) { if (bge_alloc_jumbo_mem(sc)) { printf(": jumbo buffer allocation failed\n"); - error = ENXIO; goto fail_5; } } |