summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/if_lii.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_lii.c b/sys/dev/pci/if_lii.c
index b1790ea0863..059b07dc179 100644
--- a/sys/dev/pci/if_lii.c
+++ b/sys/dev/pci/if_lii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_lii.c,v 1.4 2008/01/04 01:47:55 dlg Exp $ */
+/* $OpenBSD: if_lii.c,v 1.5 2008/01/05 03:49:06 deraadt Exp $ */
/*
* Copyright (c) 2007 The NetBSD Foundation.
@@ -278,13 +278,11 @@ atl2_attach(struct device *parent, struct device *self, void *aux)
ifp->if_init = atl2_init;
IFQ_SET_READY(&ifp->if_snd);
- if_attach(ifp);
- ether_ifattach(ifp);
-
printf("%s, address %s\n", pci_intr_string(sc->sc_pc, ih),
ether_sprintf(sc->sc_ac.ac_enaddr));
- return;
+ if_attach(ifp);
+ ether_ifattach(ifp);
}
int