diff options
| author | wiz <wiz@NetBSD.org> | 2012-02-12 13:48:45 +0000 |
|---|---|---|
| committer | wiz <wiz@NetBSD.org> | 2012-02-12 13:48:45 +0000 |
| commit | 8afa6f08074f7f2e235d569848e33e894b3e778b (patch) | |
| tree | eb54ad48bba28fc93aa65ac965bd274bf448a828 /sys/external/isc | |
| parent | f6cef6bde938cd423c4586c9323bb59dce06e368 (diff) | |
Use correct return value. From clang via Henning Petersen in PR 45995.
Diffstat (limited to 'sys/external/isc')
| -rw-r--r-- | sys/external/isc/atheros_hal/dist/ar5212/ar5212_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/external/isc/atheros_hal/dist/ar5212/ar5212_misc.c b/sys/external/isc/atheros_hal/dist/ar5212/ar5212_misc.c index 0659636de2f..993c957a332 100644 --- a/sys/external/isc/atheros_hal/dist/ar5212/ar5212_misc.c +++ b/sys/external/isc/atheros_hal/dist/ar5212/ar5212_misc.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: ar5212_misc.c,v 1.2 2011/03/07 11:25:43 cegger Exp $ + * $Id: ar5212_misc.c,v 1.3 2012/02/12 13:48:45 wiz Exp $ */ #include "opt_ah.h" @@ -570,7 +570,7 @@ ar5212SetDecompMask(struct ath_hal *ah, uint16_t keyidx, int en) struct ath_hal_5212 *ahp = AH5212(ah); if (keyidx >= HAL_DECOMP_MASK_SIZE) - return HAL_EINVAL; + return AH_FALSE; OS_REG_WRITE(ah, AR_DCM_A, keyidx); OS_REG_WRITE(ah, AR_DCM_D, en ? AR_DCM_D_EN : 0); ahp->ah_decompMask[keyidx] = en; |
