summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-btatt.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-02-06 17:08:26 +0100
committerAnders Broman <a.broman58@gmail.com>2015-02-07 09:04:16 +0000
commit1ecd0ad076ad7dabb30b426fd8bb9042c116614a (patch)
tree2eb4de542cfeb8cdf943d6afffeb6486fc041579 /epan/dissectors/packet-btatt.c
parent2c65b33b2169a1a40766d55f8eb6339e7b412794 (diff)
downloadwireshark-1ecd0ad076ad7dabb30b426fd8bb9042c116614a.tar.gz
Bluetooth: ATT: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Id323b783e2931ad9b4e08727df91c8e0138d35c1 Reviewed-on: https://code.wireshark.org/review/6986 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-btatt.c')
-rw-r--r--epan/dissectors/packet-btatt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-btatt.c b/epan/dissectors/packet-btatt.c
index 9e48672151..9ecc828f66 100644
--- a/epan/dissectors/packet-btatt.c
+++ b/epan/dissectors/packet-btatt.c
@@ -3435,7 +3435,6 @@ dissect_btatt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
guint8 *reassembled_data;
sub_item = proto_tree_add_item(main_tree, hf_btatt_value, tvb, offset, -1, ENC_NA);
- offset = tvb_captured_length(tvb);
reassembled_data = get_value(pinfo, request_data->parameters.read_write.handle, bluetooth_data, &reassembled_length);
if (reassembled_data) {
@@ -3446,7 +3445,6 @@ dissect_btatt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
}
} else {
proto_tree_add_item(main_tree, hf_btatt_value, tvb, offset, -1, ENC_NA);
- offset = tvb_captured_length(tvb);
}
offset = tvb_reported_length(tvb);