aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scsi.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-05-30 00:38:45 +0200
committerAnders Broman <a.broman58@gmail.com>2015-05-30 08:04:11 +0000
commit78c0aa320c57e3b36eec2f3dce83e48899261334 (patch)
tree884be0943c0cd30df1970ee13ca9bf1ce28fd85e /epan/dissectors/packet-scsi.c
parentc2bad0cec445ad105f567ee75b855d237979b7cb (diff)
SCSI: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ie71203081f807401d3eee5601a1885e9a311f81e Reviewed-on: https://code.wireshark.org/review/8698 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-scsi.c')
-rw-r--r--epan/dissectors/packet-scsi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c
index 914df400f0..13d3903864 100644
--- a/epan/dissectors/packet-scsi.c
+++ b/epan/dissectors/packet-scsi.c
@@ -5040,14 +5040,12 @@ dissect_scsi_lun(proto_tree *tree, tvbuff_t *tvb, guint offset) {
lun = tvb_get_guint8(tvb, offset + lun_len + 1);
proto_tree_add_uint(tt, hf_scsi_lun, tvb, offset + lun_len + 1, 1, lun);
} else {
- lun &= 0x3fff;
proto_tree_add_bits_item(tt, hf_scsi_lun, tvb, (offset + lun_len) * 8 + 2, 0xe, ENC_BIG_ENDIAN);
}
lun_len += len_code;
break;
case 1:
- lun &= 0x3fff;
proto_tree_add_bits_item(tt, hf_scsi_lun, tvb, (offset + lun_len) * 8 + 2, 0xe, ENC_BIG_ENDIAN);
lun_len += len_code;
break;