capture: Remove an unused variable.

Fix

```
capture/ws80211_utils.c:328:6: error: variable 'bandidx' set but not used [-Werror,-Wunused-but-set-variable]
        int bandidx = 1;
            ^
```
This commit is contained in:
Gerald Combs 2022-11-07 11:24:27 -08:00
parent 3ec1e6ca59
commit fd92228e54
1 changed files with 0 additions and 3 deletions

View File

@ -325,14 +325,11 @@ static void parse_wiphy_bands(struct ws80211_interface *iface,
{
struct nlattr *nl_band;
struct nlattr *tb_band[NL80211_BAND_ATTR_MAX + 1];
int bandidx = 1;
int rem_band;
if (!tb) return;
nla_for_each_nested(nl_band, tb, rem_band) {
bandidx++;
nla_parse(tb_band, NL80211_BAND_ATTR_MAX,
(struct nlattr *)nla_data(nl_band),
nla_len(nl_band), NULL);