diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-09-23 07:20:45 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-09-23 07:20:45 +0000 |
commit | 2b301cefb9eabe13d03038a77c3fc8bbaafdf494 (patch) | |
tree | f15c3705ca34fe1477e89e79d42d2e3607f53c22 /epan/dissectors/packet-rfid-pn532.c | |
parent | 044951858f1d937431f616b16afa63f8bba64ee0 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=52185
Diffstat (limited to 'epan/dissectors/packet-rfid-pn532.c')
-rw-r--r-- | epan/dissectors/packet-rfid-pn532.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rfid-pn532.c b/epan/dissectors/packet-rfid-pn532.c index 185203e07d..b39a5e8da1 100644 --- a/epan/dissectors/packet-rfid-pn532.c +++ b/epan/dissectors/packet-rfid-pn532.c @@ -661,7 +661,6 @@ dissect_pn532(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_item(pn532_tree, hf_pn532_NbTg, tvb, offset, 1, ENC_BIG_ENDIAN); value = tvb_get_guint8(tvb, offset); - item_value = value; offset += 1; for (item_value = 1; item_value <= value; item_value += 1) { @@ -1065,8 +1064,8 @@ dissect_pn532(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* TODO: implement in accordance with the specification, need storing additional information ("baudrate" from request) in wmem_tree */ for (item_value = 1; item_value <= value; item_value += 1) { - sub_item = proto_tree_add_item(pn532_tree, hf_pn532_target, tvb, offset, 0, ENC_NA); - sub_tree = proto_item_add_subtree(sub_item, ett_pn532_target); + sub_item = proto_tree_add_item(pn532_tree, hf_pn532_target, tvb, offset, 0, ENC_NA); + /*sub_tree = proto_item_add_subtree(sub_item, ett_pn532_target);*/ proto_item_append_text(sub_item, " %u/%u", item_value, value); @@ -1366,7 +1365,6 @@ dissect_pn532(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case IN_AUTO_POLL_RSP: proto_tree_add_item(pn532_tree, hf_pn532_NbTg, tvb, offset, 1, ENC_BIG_ENDIAN); value = tvb_get_guint8(tvb, offset); - item_value = value; offset += 1; for (item_value = 1; item_value <= value; item_value += 1) { |