summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authortb <tb@cvs.openbsd.org>2016-02-07 23:56:20 +0000
committertb <tb@cvs.openbsd.org>2016-02-07 23:56:20 +0000
commit7ace03cb3d02ebe8632a047a253dcbdc0bd1aaad (patch)
tree4f9461de7ed9d4cee6849e4918cdeef527ec4b89 /sys/dev
parent9746f1adee393c493f2fa78ad31a8789dcb9e1fd (diff)
Fix off-by-one in loop termination condition.
ok stsp@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_iwn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 6ddea040353..246f0560d81 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.162 2016/02/05 20:00:20 stsp Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.163 2016/02/07 23:56:19 tb Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -3419,7 +3419,7 @@ iwn_set_link_quality(struct iwn_softc *sc, struct ieee80211_node *ni)
/* XXX set correct ant mask for MIMO rates here */
linkq.retry[i].rflags |= IWN_RFLAG_ANT(txant);
- if (i++ >= IWN_MAX_TX_RETRIES)
+ if (++i >= IWN_MAX_TX_RETRIES)
break;
}