forked from osmocom/wireshark
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; ^ ```master
parent
3ec1e6ca59
commit
fd92228e54
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue