ieee80211: Fix Dead Store found by Clang Analyzer

Value stored to 'offset' is never read
This commit is contained in:
Alexis La Goutte 2021-02-24 15:13:21 +01:00 committed by Wireshark GitLab Utility
parent b140ea6f50
commit 670fab2ce5
1 changed files with 2 additions and 2 deletions

View File

@ -18194,7 +18194,7 @@ dissect_no_bssid_capability(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *t
ett_tag_no_bssid_capability_dmg_bss_control_tree,
ieee80211_tag_no_bssid_capability_dmg_bss_control,
ENC_LITTLE_ENDIAN, BMT_NO_APPEND);
offset += 1;
/* offset += 1; */
ieee80211_tag_dmg_capabilities(tvb, pinfo, tree, data);
}
@ -18252,7 +18252,7 @@ dissect_multiple_bssid_index(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *
offset += 1;
}
return tvb_captured_length(tvb);
return offset;
}
static int