diff options
author | sam <sam@FreeBSD.org> | 2009-01-23 05:33:48 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-01-23 05:33:48 +0000 |
commit | d0356507a2f2767e756ec85004ff698d434a4318 (patch) | |
tree | 34b9f9f1293a3ce23ff0ea20c1d96736697fbe23 /sys/dev/ath/ath_hal/ar5416 | |
parent | f5721f3a133e171e847b34ec13a5a2258ae076a0 (diff) | |
download | FreeBSD-src-d0356507a2f2767e756ec85004ff698d434a4318.zip FreeBSD-src-d0356507a2f2767e756ec85004ff698d434a4318.tar.gz |
fix return status handling by ar5XXXReset; this is the reason the
driver sometimes reports reset failed w/ status 0
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5416')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5416/ar5416_reset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c index 74ba497..5296bc7 100644 --- a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c +++ b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: ar5416_reset.c,v 1.27 2008/11/27 22:30:08 sam Exp $ + * $FreeBSD$ */ #include "opt_ah.h" @@ -470,7 +470,7 @@ ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode, return AH_TRUE; bad: OS_MARK(ah, AH_MARK_RESET_DONE, ecode); - if (*status) + if (status != AH_NULL) *status = ecode; return AH_FALSE; #undef FAIL |