gryphon: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Thu, 8 Mar 2018 09:13:50 +0000 (10:13 +0100)
committerAnders Broman <a.broman58@gmail.com>
Thu, 8 Mar 2018 12:42:27 +0000 (12:42 +0000)
Change-Id: I08b59156dbe537c6c4a6b3502ab469c88e984b67
Reviewed-on: https://code.wireshark.org/review/26357
Reviewed-by: Anders Broman <a.broman58@gmail.com>
plugins/epan/gryphon/packet-gryphon.c

index d5191a67e6ee1b65cec6110c686da331d3e429f7..a33b5ab7f7a5cd1d3dae62d6382e016082d7204b 100644 (file)
@@ -2850,7 +2850,6 @@ cmd_ldf_get_frame_info(tvbuff_t *tvb, int offset, proto_tree *pt)
     string = tvb_get_stringz_enc(wmem_packet_scope(), tvb, offset, &length, ENC_ASCII);
     if(length > 1) {
         proto_tree_add_string(pt, hf_gryphon_ldf_get_frame, tvb, offset, length, string);
-        id = tvb_get_guint8(tvb, offset);
         offset += length;
         proto_tree_add_uint_format_value(pt, hf_gryphon_ldf_ioctl_setflags_flags, tvb, offset, 1, 0, "(Id not used)");
         offset += 1;