ncsi: Fix warning found by Clang Analyzer

packet-ncsi.c:653:55: warning: Although the value stored to 'offset' is used in the enclosing expression, the value is never actually read from 'offset' [deadcode.DeadStores]
This commit is contained in:
Alexis La Goutte 2021-03-02 21:58:15 +00:00 committed by Wireshark GitLab Utility
parent c3687757b9
commit 71f4712532
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ ncsi_proto_tree_add_cap(tvbuff_t *tvb, proto_tree *tree, int offset)
proto_tree_add_item(tree, hf_ncsi_cap_uccnt, tvb, offset += 1, 1, ENC_NA);
proto_tree_add_bitmask_with_flags(tree, tvb, offset += 3, hf_ncsi_cap_vmode,
ett_ncsi_cap_vmode, cap_vmode_fields, ENC_BIG_ENDIAN, BMT_NO_APPEND);
proto_tree_add_item(tree, hf_ncsi_cap_chcnt, tvb, offset += 1, 1, ENC_NA);
proto_tree_add_item(tree, hf_ncsi_cap_chcnt, tvb, offset, 1, ENC_NA);
}