Fix Dead Store (Dead assignement/Dead increment) warning found by Clang

Change-Id: I82efd1c5f4280de2eec3dbe7bd1995fcd9a3174f
Reviewed-on: https://code.wireshark.org/review/2895
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-07-06 19:26:43 +02:00 committed by Anders Broman
parent c71e88e4a9
commit 84189ded75
1 changed files with 2 additions and 3 deletions

View File

@ -6179,9 +6179,8 @@ dissect_nai_realm_list(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int
tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
nai_len = tvb_get_guint8(tvb, offset);
item = proto_tree_add_item(realm_tree,
hf_ieee80211_ff_anqp_nai_realm_length,
tvb, offset, 1, ENC_LITTLE_ENDIAN);
proto_tree_add_item(realm_tree, hf_ieee80211_ff_anqp_nai_realm_length,
tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
if (offset + nai_len > f_end) {
expert_add_info_format(pinfo, r_item, &ei_ieee80211_ff_anqp_nai_field_len,