diff options
author | alagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-02-06 22:05:10 +0000 |
---|---|---|
committer | alagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-02-06 22:05:10 +0000 |
commit | a2bc6330fd538c659629b02d8e953e1c725a7afa (patch) | |
tree | ece58168796a98589bfc4e55064b9c7d38e8d62d /epan/dissectors/packet-eap.c | |
parent | c452bc7ef82e7b6ecc62c0bc9db8cf98954a51c4 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40894 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-eap.c')
-rw-r--r-- | epan/dissectors/packet-eap.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/epan/dissectors/packet-eap.c b/epan/dissectors/packet-eap.c index 4351c7f95d..f724d7b233 100644 --- a/epan/dissectors/packet-eap.c +++ b/epan/dissectors/packet-eap.c @@ -1051,7 +1051,6 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_text(eap_tree, tvb, offset, 1, "Version: %i",field); } - size--; offset++; /* Unused (byte) */ @@ -1060,7 +1059,6 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_text(eap_tree, tvb, offset, 1, "Reserved: %i",field); } - size--; offset++; /* Count (byte) */ @@ -1069,7 +1067,6 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_text(eap_tree, tvb, offset, 1, "Count: %i",count); } - size--; offset++; /* Data (byte*Count) */ @@ -1135,8 +1132,6 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } /* END: if (tree) */ - - size -= count; offset += count; /* Name (Length-(8+Count)) */ @@ -1147,8 +1142,6 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) namesize, plurality(count, "", "s"), tvb_format_text(tvb, offset, namesize)); } - size -= namesize; - offset += namesize; } break; /* EAP_TYPE_LEAP */ |