summaryrefslogtreecommitdiff
path: root/sys/dev/an
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-09-22 04:49:17 +0000
committerWarner Losh <imp@FreeBSD.org>2005-09-22 04:49:17 +0000
commitb1d1a29cf67014f49d046840d61068a6548847a1 (patch)
tree72dd46dd7f39f378c847f93ffd27895cc0d46071 /sys/dev/an
parent2a5481cafd0d7dd8972b7a3d41f139c7aaa132a8 (diff)
Notes
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an_pccard.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/an/if_an_pccard.c b/sys/dev/an/if_an_pccard.c
index 5e5d9d12d97d..c283663bda5d 100644
--- a/sys/dev/an/if_an_pccard.c
+++ b/sys/dev/an/if_an_pccard.c
@@ -160,19 +160,14 @@ an_pccard_attach(device_t dev)
sc->an_dev = dev;
error = an_attach(sc, device_get_unit(dev), flags);
- if (error) {
+ if (error)
goto fail;
- }
/*
* Must setup the interrupt after the an_attach to prevent racing.
*/
error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET,
an_intr, sc, &sc->irq_handle);
- if (error) {
- goto fail;
- }
-
fail:
if (error)
an_release_resources(dev);