|
Bugzilla – Full Text Bug Listing |
| Summary: | MinstrelWifiManager::UpdateStats useless if clause | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Quincy Tse <quincy.tse> |
| Component: | wifi | Assignee: | Nicola Baldo <nicola> |
| Status: | RESOLVED FIXED | ||
| Severity: | trivial | CC: | ns-bugs |
| Priority: | P5 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Proposed pa | ||
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 |
../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.