diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-18 18:06:22 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-18 18:06:22 +0000 |
commit | 45ed74451e3c98e7a74f99a17e7df0670b68012d (patch) | |
tree | e16f0fa308108325e82538127348530c2f3843a6 /epan/dissectors/packet-gvcp.c | |
parent | 3dcbd7c392fae723fb76e78598452f3c7cf52dee (diff) | |
download | wireshark-45ed74451e3c98e7a74f99a17e7df0670b68012d.tar.gz wireshark-45ed74451e3c98e7a74f99a17e7df0670b68012d.tar.bz2 wireshark-45ed74451e3c98e7a74f99a17e7df0670b68012d.zip |
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=36705
Diffstat (limited to 'epan/dissectors/packet-gvcp.c')
-rw-r--r-- | epan/dissectors/packet-gvcp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gvcp.c b/epan/dissectors/packet-gvcp.c index dc47474d44..c1139588ab 100644 --- a/epan/dissectors/packet-gvcp.c +++ b/epan/dissectors/packet-gvcp.c @@ -109,7 +109,7 @@ static const value_string opcode_short_names[] = { static int dissect_gvcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - guint16 packet_type, packet_opcode, packet_plsize, packet_seqn; + guint16 packet_type, packet_opcode, packet_plsize; emem_strbuf_t *info; /* Check that there's enough data */ @@ -141,7 +141,6 @@ dissect_gvcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* dissect 8 byte header */ packet_opcode = tvb_get_ntohs(tvb, 2); packet_plsize = tvb_get_ntohs(tvb, 4); - packet_seqn = tvb_get_ntohs(tvb, 6); /* allocate growable info string */ info = ep_strbuf_new(val_to_str(packet_opcode, opcode_names, "Unknown opcode (0x%04x)")); |