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
This commit is contained in:
parent
cf62d79aa8
commit
0f3801fa37
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user