From 87b4d73feac4fb9d616f1f9bf7eb40631fa4639b Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 12 Feb 2012 13:48:45 +0000 Subject: [PATCH] Use correct return value. From clang via Henning Petersen in PR 45995. --- sys/external/isc/atheros_hal/dist/ar5212/ar5212_misc.c | 4 ++-- 1 file 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 0659636de2f2..993c957a332b 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;