Remove unnecessary initialisations. Return ENXIO instead of 1 in
commit2798d059284b9c63300b67664cba9ad839e42fde
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Jul 2005 16:33:25 +0000 (28 16:33 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Jul 2005 16:33:25 +0000 (28 16:33 +0000)
treea64409fc433045db29f9eaf626a605afa0dfc362
parent527fb43ad4f38cc565c1ac5b0762b9b6bd14ddf2
Remove unnecessary initialisations. Return ENXIO instead of 1 in
an_pccard_probe. Separate error path and normal normal return in
ac_pccard_attach. GC AN_PCI_PLX_LOIO. Don't mess with PCI controll
register, it's already down by the PCI layer.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
In addition, reverse the return value of an_probe. It doesn't make sense
to return 0 on failure, if the callee are interested only in the error,
not the success code.
sys/dev/netif/an/if_an.c
sys/dev/netif/an/if_an_isa.c
sys/dev/netif/an/if_an_pccard.c
sys/dev/netif/an/if_an_pci.c