summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-05-31 04:47:50 +0000
committerderaadt <deraadt@openbsd.org>2009-05-31 04:47:50 +0000
commit2d43e296886b6da2bd3f9c8b53c1e7e8b18e3e5a (patch)
tree508df7b895d6e4d77289d7e20b86cbfe466ccf76 /sys/dev/pci/if_em.c
parentAdd SCH IDE support code. (diff)
downloadwireguard-openbsd-2d43e296886b6da2bd3f9c8b53c1e7e8b18e3e5a.tar.xz
wireguard-openbsd-2d43e296886b6da2bd3f9c8b53c1e7e8b18e3e5a.zip
doubled error messages are silly
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r--sys/dev/pci/if_em.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 4ee5c347645..ae60e392893 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.208 2009/05/25 10:17:55 sthen Exp $ */
+/* $OpenBSD: if_em.c,v 1.209 2009/05/31 04:47:50 deraadt Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -293,11 +293,8 @@ em_attach(struct device *parent, struct device *self, void *aux)
*/
sc->hw.report_tx_early = 1;
- if (em_allocate_pci_resources(sc)) {
- printf("%s: Allocation of PCI resources failed\n",
- sc->sc_dv.dv_xname);
+ if (em_allocate_pci_resources(sc))
goto err_pci;
- }
/* Initialize eeprom parameters */
em_init_eeprom_params(&sc->hw);