diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-07-15 19:33:35 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-07-15 19:33:35 +0000 |
commit | 6743ca45cd7ca4848a126cc6a1caa5ebd63f6add (patch) | |
tree | 9e6b28eef17400f4954cced03f1969bd7ffb1e62 | |
parent | 10a37cae24994d2c9594cd8c420fa8ab437ff3bc (diff) |
fix PDADC value for target index (AR5008 family only.)
-rw-r--r-- | sys/dev/ic/ar5008.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c index dad7e2abcdf..eff481c68bd 100644 --- a/sys/dev/ic/ar5008.c +++ b/sys/dev/ic/ar5008.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5008.c,v 1.9 2010/06/21 19:46:50 damien Exp $ */ +/* $OpenBSD: ar5008.c,v 1.10 2010/07/15 19:33:34 damien Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -2401,7 +2401,7 @@ ar5008_get_pdadcs(struct athn_softc *sc, uint8_t fbin, while (ss < maxidx && npdadcs < AR_NUM_PDADC_VALUES - 1) pdadcs[npdadcs++] = vpd[ss++]; - if (tgtidx <= maxidx) + if (tgtidx < maxidx) continue; /* Extrapolate data for maxidx <= ss <= tgtidx. */ |