diff options
author | weongyo <weongyo@FreeBSD.org> | 2010-07-22 20:08:02 +0000 |
---|---|---|
committer | weongyo <weongyo@FreeBSD.org> | 2010-07-22 20:08:02 +0000 |
commit | d8f5d7b451f1ec00dfbd845d719dafc859eda08d (patch) | |
tree | 111df0d2af0b51cfc5ed450f377274207c1b4572 | |
parent | 137c3685480b439bb4a8b47f13a8b04a95fb7d8e (diff) | |
download | FreeBSD-src-d8f5d7b451f1ec00dfbd845d719dafc859eda08d.zip FreeBSD-src-d8f5d7b451f1ec00dfbd845d719dafc859eda08d.tar.gz |
Fixes a mistake to calculate CALC_COEFF2() value that tmp[3] is
used even if it's unreachable.
PR: kern/144505
Submitted by: Henning Petersen <henning.petersen at t-online dot de>
MFC after: 1 week
-rw-r--r-- | sys/dev/bwn/if_bwn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c index b57ce88..65d17b4 100644 --- a/sys/dev/bwn/if_bwn.c +++ b/sys/dev/bwn/if_bwn.c @@ -12828,9 +12828,9 @@ bwn_phy_lp_calc_rx_iq_comp(struct bwn_mac *mac, uint16_t sample) int _t; \ _t = _x - 11; \ if (_t >= 0) \ - tmp[3] = (_y << (31 - _x)) / (_z >> _t); \ + _v = (_y << (31 - _x)) / (_z >> _t); \ else \ - tmp[3] = (_y << (31 - _x)) / (_z << -_t); \ + _v = (_y << (31 - _x)) / (_z << -_t); \ } while (0) struct bwn_phy_lp_iq_est ie; uint16_t v0, v1; |