Bugzilla – Bug 993
MinstrelWifiManager::UpdateStats useless if clause
Last modified: 2010-10-26 08:14:24 UTC
../src/devices/wifi/minstrel-wifi-manager.cc:528:42: error: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (idx >= m_nsupported || idx < 0) ~~~ ^ ~ Here, idx is declared as uint32_t, and can never be <0. Hence the idx < 0 clause can be safely removed.
Created attachment 975 [details] Proposed pa
Quincy, thank you for this bug report and patch. Feel free to push it to ns-3-dev if you have commit privileges, otherwise just let me know and I'll do it.
Can you please push it?
changeset: 6645:b89ac19713c6