diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2018-06-12 08:14:09 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-06-12 09:59:57 +0000 |
commit | 4f383c2b8c8137e0aac84519bd9a96197d2cb4e4 (patch) | |
tree | 97b16d2e4356ff284f954768cc2c6d3bbc461038 /epan/dissectors/packet-zbee-nwk-gp.c | |
parent | 7b6f351a05ed4c1fa0e1cdaa4f8e7d087bced8af (diff) |
zbee nwk gp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I831047c30a55813b149bc331a63701568319c4b5
Reviewed-on: https://code.wireshark.org/review/28213
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: <atsju2@yahoo.fr>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-zbee-nwk-gp.c')
-rw-r--r-- | epan/dissectors/packet-zbee-nwk-gp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-zbee-nwk-gp.c b/epan/dissectors/packet-zbee-nwk-gp.c index 48ae0d160c..18a7830514 100644 --- a/epan/dissectors/packet-zbee-nwk-gp.c +++ b/epan/dissectors/packet-zbee-nwk-gp.c @@ -1047,7 +1047,7 @@ dissect_zbee_nwk_gp_cmd_read_attributes(tvbuff_t *tvb, packet_info *pinfo _U_, p /* Get Options Field, build subtree and display the results. */ cr_options = tvb_get_guint8(tvb, offset); - subtree = proto_tree_add_bitmask(tree, tvb, offset, hf_zbee_nwk_gp_cmd_read_att_opt, ett_zbee_nwk_cmd_options, options, ENC_NA); + proto_tree_add_bitmask(tree, tvb, offset, hf_zbee_nwk_gp_cmd_read_att_opt, ett_zbee_nwk_cmd_options, options, ENC_NA); offset += 1; /* Parse and display manufacturer ID value. */ @@ -1113,7 +1113,7 @@ dissect_zbee_nwk_gp_cmd_write_attributes(tvbuff_t *tvb, packet_info *pinfo _U_, /* Get Options Field, build subtree and display the results. */ cr_options = tvb_get_guint8(tvb, offset); - subtree = proto_tree_add_bitmask(tree, tvb, offset, hf_zbee_nwk_gp_cmd_read_att_opt, ett_zbee_nwk_cmd_options, options, ENC_NA); + proto_tree_add_bitmask(tree, tvb, offset, hf_zbee_nwk_gp_cmd_read_att_opt, ett_zbee_nwk_cmd_options, options, ENC_NA); offset += 1; /* Parse and display manufacturer ID value. */ @@ -1188,7 +1188,7 @@ dissect_zbee_nwk_gp_cmd_read_attributes_response(tvbuff_t *tvb, packet_info *pin /* Get Options Field, build subtree and display the results. */ cr_options = tvb_get_guint8(tvb, offset); - subtree = proto_tree_add_bitmask(tree, tvb, offset, hf_zbee_nwk_gp_cmd_read_att_opt, ett_zbee_nwk_cmd_options, options, ENC_NA); + proto_tree_add_bitmask(tree, tvb, offset, hf_zbee_nwk_gp_cmd_read_att_opt, ett_zbee_nwk_cmd_options, options, ENC_NA); offset += 1; /* Parse and display manufacturer ID value. */ |