aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pcap_pktdata.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-01-18 21:09:56 +0100
committerGuy Harris <guy@alum.mit.edu>2016-01-19 02:44:57 +0000
commit203b9e07127d418a128a743ad688344047b743c2 (patch)
tree3b7cb236b9476ea55c467dcced5290eb4e9d3d45 /epan/dissectors/packet-pcap_pktdata.c
parent441c6d4e9ccaaf3a9e8a6595d4abb53ec508a0e4 (diff)
PCAP PKTDATA: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ia6e14bc1cc93645317c10b4e649f4839d802053a Reviewed-on: https://code.wireshark.org/review/13403 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-pcap_pktdata.c')
-rw-r--r--epan/dissectors/packet-pcap_pktdata.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pcap_pktdata.c b/epan/dissectors/packet-pcap_pktdata.c
index 2e55eb3f54..d487c2562a 100644
--- a/epan/dissectors/packet-pcap_pktdata.c
+++ b/epan/dissectors/packet-pcap_pktdata.c
@@ -283,7 +283,6 @@ dissect_pcap_pktdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
&ei_pcap_pktdata_linktype_unknown,
"Link-layer header type %u is not supported",
*link_type);
- next_tvb = tvb_new_subset_remaining(tvb, offset);
return tvb_captured_length(tvb);
}
@@ -347,7 +346,6 @@ dissect_pcap_pktdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
&ei_pcap_pktdata_cant_generate_phdr,
"No pseudo-header can be generated for link-layer header type %u",
*link_type);
- next_tvb = tvb_new_subset_remaining(tvb, offset);
return tvb_captured_length(tvb);
}
} else {