artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80a670f
)
fix PDADC value for target index (AR5008 family only.)
author
damien
<damien@openbsd.org>
Thu, 15 Jul 2010 19:33:34 +0000
(19:33 +0000)
committer
damien
<damien@openbsd.org>
Thu, 15 Jul 2010 19:33:34 +0000
(19:33 +0000)
sys/dev/ic/ar5008.c
patch
|
blob
|
history
diff --git
a/sys/dev/ic/ar5008.c
b/sys/dev/ic/ar5008.c
index
dad7e2a
..
eff481c
100644
(file)
--- 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. */