mbim: Fix warning found by Clang Analyzer

packet-mbim.c:2871:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-mbim.c:2976:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-mbim.c:4053:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
This commit is contained in:
Alexis La Goutte 2021-03-02 21:55:55 +00:00 committed by Wireshark GitLab Utility
parent ed2955cf4c
commit c3687757b9
1 changed files with 3 additions and 3 deletions

View File

@ -2868,7 +2868,7 @@ mbim_dissect_ms_plmn(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gi
{
proto_tree_add_uint_format_value(tree, hf_mbim_ms_plmn_mnc, tvb, offset, 2, mnc, "%03u", mnc & 0x7fff);
}
offset += 2;
/* offset += 2; */
}
static void
@ -2973,7 +2973,7 @@ mbim_dissect_ms_wake_packet(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* t
proto_tree_add_item_ret_uint(wake_packet_tree, hf_mbim_ms_wake_reason_packet_saved_offset, tvb, offset, 4, ENC_LITTLE_ENDIAN, &packet_offset);
offset += 4;
proto_tree_add_item_ret_uint(wake_packet_tree, hf_mbim_ms_wake_reason_packet_saved_size, tvb, offset, 4, ENC_LITTLE_ENDIAN, &packet_size);
offset += 4;
/* offset += 4; */
if (packet_offset && packet_size)
{
proto_tree_add_bytes_format(wake_packet_tree, hf_mbim_ms_wake_reason_packet_saved_data, tvb, begin_offset + packet_offset, packet_size, NULL, "Saved Packet Data");
@ -4050,7 +4050,7 @@ mbim_dissect_single_packet_filter(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
offset += 4;
if (SHOULD_MBIM_EX3_BE_APPLIED(mbim_conv)) {
proto_tree_add_item(tree, hf_mbim_single_packet_filter_filter_id, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
/* offset += 4; */
}
if (filter_size) {
if (packet_filter_offset) {