From: damien Date: Thu, 15 Jul 2010 19:33:34 +0000 (+0000) Subject: fix PDADC value for target index (AR5008 family only.) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5a2e87630d5589bd86e7bbfadc6a62e2645fe9ca;p=openbsd fix PDADC value for target index (AR5008 family only.) --- 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 @@ -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. */