diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2021-05-21 14:14:44 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-05-23 19:06:48 +0000 |
commit | 00c40566701d6e11b9d37fcc639f5a4ab033468b (patch) | |
tree | 32ebfd1113cf46f0990fabd7780d534a384d0305 | |
parent | 30832dcdea800196e444558f1a246919cd0da374 (diff) |
nvme: Fix Dead Store
Value stored to 'bytes' is never read
-rw-r--r-- | epan/dissectors/packet-nvme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-nvme.c b/epan/dissectors/packet-nvme.c index e6110c6dfc..07c053cb1d 100644 --- a/epan/dissectors/packet-nvme.c +++ b/epan/dissectors/packet-nvme.c @@ -1727,7 +1727,7 @@ static void decode_smart_resp_temps(proto_tree *grp, tvbuff_t *cmd_tvb, guint of if (bytes > max_bytes) bytes = max_bytes; - ti = proto_tree_add_item(grp, hf_nvme_get_logpage_smart_ts[0], cmd_tvb, poff, max_bytes, ENC_NA); + ti = proto_tree_add_item(grp, hf_nvme_get_logpage_smart_ts[0], cmd_tvb, poff, bytes, ENC_NA); grp = proto_item_add_subtree(ti, ett_data); for (i = 0; i < 8; i++) { guint pos = 200 + i * 2; @@ -1844,7 +1844,7 @@ static void decode_fw_slot_frs(proto_tree *grp, tvbuff_t *cmd_tvb, guint32 off, if (bytes > max_bytes) bytes = max_bytes; - ti = proto_tree_add_item(grp, hf_nvme_get_logpage_fw_slot_frs[0], cmd_tvb, poff, max_bytes, ENC_NA); + ti = proto_tree_add_item(grp, hf_nvme_get_logpage_fw_slot_frs[0], cmd_tvb, poff, bytes, ENC_NA); grp = proto_item_add_subtree(ti, ett_data); for (i = 0; i < 7; i++) { guint pos = 8 + i * 8; |