diff options
author | Gary Mills <gary_mills@fastmail.fm> | 2017-07-11 12:21:05 -0500 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2017-08-18 10:33:50 -0400 |
commit | e792dca6958d39dce4b70fc78a9c70e55fe4bbf2 (patch) | |
tree | 1192762b814567fc8a745c02a819d71f333b10df /usr/src | |
parent | fdbb9738bc3cf273d0d8898e2f45f1bb76adff81 (diff) | |
download | illumos-joyent-e792dca6958d39dce4b70fc78a9c70e55fe4bbf2.tar.gz |
8465 aggressive-loop-optimizations error in rt2860.c
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/rwn/rt2860.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/rwn/rt2860.c b/usr/src/uts/common/io/rwn/rt2860.c index 703f1df19a..e3df2a765c 100644 --- a/usr/src/uts/common/io/rwn/rt2860.c +++ b/usr/src/uts/common/io/rwn/rt2860.c @@ -1,4 +1,5 @@ /* + * Copyright 2017 Gary Mills * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -516,7 +517,7 @@ rt2860_read_eeprom(struct rt2860_softc *sc) sc->txpow2[i + 15] = (int8_t)(val >> 8); } /* fix broken Tx power entries */ - for (i = 0; i < 36; i++) { + for (i = 0; i < 35; i++) { if (sc->txpow1[14 + i] < -7 || sc->txpow1[14 + i] > 15) sc->txpow1[14 + i] = 5; if (sc->txpow2[14 + i] < -7 || sc->txpow2[14 + i] > 15) @@ -671,8 +672,8 @@ rt2860_read_eeprom(struct rt2860_softc *sc) */ static int rt2860_alloc_dma_mem(dev_info_t *devinfo, ddi_dma_attr_t *dma_attr, - size_t memsize, ddi_device_acc_attr_t *attr_p, uint_t alloc_flags, - uint_t bind_flags, struct dma_area *dma_p) + size_t memsize, ddi_device_acc_attr_t *attr_p, uint_t alloc_flags, + uint_t bind_flags, struct dma_area *dma_p) { int err; |