aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-23 12:51:23 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-23 20:51:51 +0000
commit4a076676e0ef017fbadcb08e1614448979fffb7d (patch)
treec9e7325991e5511f1ad6c00dd41e7ded47bd052e
parent2899cf40f35289a4dc56744a5b5d6e41c7f83c54 (diff)
Get rid of no-longer-needed variables.
Change-Id: I2758c4f57fdaaa61c1d73ca9b5ccaf427599a624 Reviewed-on: https://code.wireshark.org/review/7332 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--epan/dissectors/packet-nbt.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-nbt.c b/epan/dissectors/packet-nbt.c
index b4ef182d1e..edaccd61fe 100644
--- a/epan/dissectors/packet-nbt.c
+++ b/epan/dissectors/packet-nbt.c
@@ -515,8 +515,7 @@ dissect_nbns_query(tvbuff_t *tvb, int offset, int nbns_data_offset,
static void
nbns_add_nbns_flags(column_info *cinfo, proto_tree *nbns_tree, tvbuff_t *tvb, int offset, int is_wack)
{
- guint16 opcode, flag;
- proto_item *tf;
+ guint16 flag;
static const int * req_flags[] = {
&hf_nbns_flags_response,
&hf_nbns_flags_opcode,
@@ -562,15 +561,14 @@ nbns_add_nbns_flags(column_info *cinfo, proto_tree *nbns_tree, tvbuff_t *tvb, in
if (!nbns_tree)
return;
- opcode = (guint16) ((flag & F_OPCODE) >> OPCODE_SHIFT);
if (flag & F_RESPONSE) {
if (!is_wack) {
- tf = proto_tree_add_bitmask(nbns_tree, tvb, offset, hf_nbns_flags, ett_nbns_flags, resp_flags, ENC_BIG_ENDIAN);
+ proto_tree_add_bitmask(nbns_tree, tvb, offset, hf_nbns_flags, ett_nbns_flags, resp_flags, ENC_BIG_ENDIAN);
} else {
- tf = proto_tree_add_bitmask(nbns_tree, tvb, offset, hf_nbns_flags, ett_nbns_flags, resp_wack_flags, ENC_BIG_ENDIAN);
+ proto_tree_add_bitmask(nbns_tree, tvb, offset, hf_nbns_flags, ett_nbns_flags, resp_wack_flags, ENC_BIG_ENDIAN);
}
} else {
- tf = proto_tree_add_bitmask(nbns_tree, tvb, offset, hf_nbns_flags, ett_nbns_flags, req_flags, ENC_BIG_ENDIAN);
+ proto_tree_add_bitmask(nbns_tree, tvb, offset, hf_nbns_flags, ett_nbns_flags, req_flags, ENC_BIG_ENDIAN);
}
}