MFp4: trivial KNF nits

This commit is contained in:
Warner Losh 2005-09-22 04:49:17 +00:00
parent 2a5481cafd
commit b1d1a29cf6

View File

@ -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);