Use correct return value. From clang via Henning Petersen in PR 45995.

This commit is contained in:
wiz 2012-02-12 13:48:45 +00:00
parent 498ae6154b
commit 87b4d73fea
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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" #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); struct ath_hal_5212 *ahp = AH5212(ah);
if (keyidx >= HAL_DECOMP_MASK_SIZE) 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_A, keyidx);
OS_REG_WRITE(ah, AR_DCM_D, en ? AR_DCM_D_EN : 0); OS_REG_WRITE(ah, AR_DCM_D, en ? AR_DCM_D_EN : 0);
ahp->ah_decompMask[keyidx] = en; ahp->ah_decompMask[keyidx] = en;