aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-11-11 15:30:38 +0100
committerAnders Broman <a.broman58@gmail.com>2017-11-11 15:43:49 +0000
commitff302a283d2654105143377823dc6fafb88885c3 (patch)
tree20f0a37d58f83d80aabf0a4148d3572c17f1b86c /epan
parent73329d786ba6643784dc0c31cede88ad4da7db4a (diff)
btmesh: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I7218d74e1dc4d014dadd86f55b7805ba1581f9c3 Reviewed-on: https://code.wireshark.org/review/24346 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-btmesh.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-btmesh.c b/epan/dissectors/packet-btmesh.c
index a02dff41a1..a4c2a9c96c 100644
--- a/epan/dissectors/packet-btmesh.c
+++ b/epan/dissectors/packet-btmesh.c
@@ -555,7 +555,6 @@ dissect_btmesh_transport_constrol_message(tvbuff_t *tvb, packet_info *pinfo, pro
offset++;
/* FriendCounter 2 octets */
proto_tree_add_item(sub_tree, hf_btmesh_friendcounter, tvb, offset, 1, ENC_BIG_ENDIAN);
- offset+= 2;
break;
case 5:
/* 3.6.5.5 Friend Clear */
@@ -564,7 +563,6 @@ dissect_btmesh_transport_constrol_message(tvbuff_t *tvb, packet_info *pinfo, pro
offset += 2;
/* LPNCounter 2 octets */
proto_tree_add_item(sub_tree, hf_btmesh_lpncounter, tvb, offset, 1, ENC_BIG_ENDIAN);
- offset += 2;
break;
case 6:
/* 3.6.5.6 Friend Clear Confirm */
@@ -573,7 +571,7 @@ dissect_btmesh_transport_constrol_message(tvbuff_t *tvb, packet_info *pinfo, pro
offset += 2;
/* LPNCounter 2 octets */
proto_tree_add_item(sub_tree, hf_btmesh_lpncounter, tvb, offset, 1, ENC_BIG_ENDIAN);
- offset += 2;
+
break;
case 7:
/* 3.6.5.7 Friend Subscription List Add */