aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2006-12-01 16:03:39 +0000
committerSam Leffler <sam@FreeBSD.org>2006-12-01 16:03:39 +0000
commit30e218c0a04de77a49481a4b1de0fae8ca6e5ca3 (patch)
tree2e50395ac9a553dced41922a1039c17c93cbb734
parent16f1e614d9fc5a78062363c1fb119a394c06d561 (diff)
Notes
-rw-r--r--sys/dev/ath/if_ath_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c
index d11f92932875..a3e001b43b60 100644
--- a/sys/dev/ath/if_ath_pci.c
+++ b/sys/dev/ath/if_ath_pci.c
@@ -196,8 +196,8 @@ ath_pci_attach(device_t dev)
ATH_LOCK_INIT(sc);
error = ath_attach(pci_get_device(dev), sc);
- if (error == 0)
- return error;
+ if (error == 0) /* success */
+ return 0;
ATH_LOCK_DESTROY(sc);
bus_dma_tag_destroy(sc->sc_dmat);