Zbee (ZCL Closures): Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: Ic9dbdfbce7a1a3e29d1b59e9d1c56ee695a532ff
Reviewed-on: https://code.wireshark.org/review/12917
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2015-12-29 18:46:13 +01:00 committed by Anders Broman
parent 53ab0f0c3c
commit b123985966
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ dissect_zbee_zcl_door_lock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* Check if this command has a payload, then add the payload tree */
rem_len = tvb_reported_length_remaining(tvb, ++offset);
if (rem_len > 0) {
payload_tree = proto_tree_add_subtree(tree, tvb, offset, rem_len, ett_zbee_zcl_door_lock, NULL, "Payload");
/*payload_tree =*/ proto_tree_add_subtree(tree, tvb, offset, rem_len, ett_zbee_zcl_door_lock, NULL, "Payload");
/* Call the appropriate command dissector */
switch (cmd_id) {