aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2019-06-16 18:40:11 +0000
committerAnders Broman <a.broman58@gmail.com>2019-06-17 00:47:27 +0000
commit662ad82d605f1594c67a5d6c33b60730a8ce0062 (patch)
tree62fb53cc9156562da5ed43c770d584c3ca4e8529
parent178e7ce9a533ba9e5e152c9f7bc08f5ba8f25f0b (diff)
smb2; Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ie024c1f4724cc15f63e741544564c3872211c4d1 Reviewed-on: https://code.wireshark.org/review/33627 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-smb2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c
index 58ee69afc6..eaaf265030 100644
--- a/epan/dissectors/packet-smb2.c
+++ b/epan/dissectors/packet-smb2.c
@@ -3860,7 +3860,6 @@ dissect_smb2_notify_data_out(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *
if (length) {
proto_tree_add_item(tree, hf_smb2_filename,
tvb, offset, length, ENC_UTF_16|ENC_LITTLE_ENDIAN);
- offset += length;
}
if (!next_offset) {
@@ -6895,13 +6894,11 @@ dissect_smb2_reparse_nfs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
proto_tree_add_item(tree, hf_smb2_nfs_chr_major, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_smb2_nfs_chr_minor, tvb, offset, 4, ENC_LITTLE_ENDIAN);
- offset += 4;
break;
case NFS_SPECFILE_BLK:
proto_tree_add_item(tree, hf_smb2_nfs_blk_major, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_smb2_nfs_blk_minor, tvb, offset, 4, ENC_LITTLE_ENDIAN);
- offset += 4;
break;
case NFS_SPECFILE_FIFO:
case NFS_SPECFILE_SOCK: