diff options
author | 2005-11-25 00:37:59 +0000 | |
---|---|---|
committer | 2005-11-25 00:37:59 +0000 | |
commit | 3d408e2cb5a5e68e10f38428a2281d34b4ac1e23 (patch) | |
tree | dad28d2b97e061a831544c68dab8d4eb78573dd0 | |
parent | Use BGE_IS_575X_PLUS macro when checking whether to use the PCI Express test or not. (diff) | |
download | wireguard-openbsd-3d408e2cb5a5e68e10f38428a2281d34b4ac1e23.tar.xz wireguard-openbsd-3d408e2cb5a5e68e10f38428a2281d34b4ac1e23.zip |
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; } } |