summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-06-07 12:42:19 +0200
committerMichael Mann <mmann78@netscape.net>2017-06-07 17:42:10 +0000
commitfdd77577ee288c74c9a884e79b809c1d033b6a9b (patch)
tree18ce6d58ca9e56b91618fd869b44c4d396977f6a /epan
parentece3dec745dc61f827ec3c159851d1e5b86649e6 (diff)
downloadwireshark-fdd77577ee288c74c9a884e79b809c1d033b6a9b.tar.gz
epl: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Id5dde66c6473cd7ba3c7cc981d7b86f564f7ca9f Reviewed-on: https://code.wireshark.org/review/22004 Reviewed-by: Ahmad Fatoum <ahmad@a3f.at> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> (cherry picked from commit 8aa84c630e258654db4ca99b4eb6c1a1ac3bc8bd) Reviewed-on: https://code.wireshark.org/review/22014
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-epl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c
index 79417f60e4..0ca208ee10 100644
--- a/epan/dissectors/packet-epl.c
+++ b/epan/dissectors/packet-epl.c
@@ -2156,8 +2156,10 @@ epl_get_convo(packet_info *pinfo, int opts)
{
node_port = pinfo->destport;
+#if 0
if (pinfo->dst.type == AT_IPv4 || pinfo->dst.type == AT_ETHER)
node_addr = &pinfo->dst;
+#endif
if (pinfo->dl_dst.type == AT_ETHER)
node_dl_addr = &pinfo->dl_dst;
}
@@ -2165,8 +2167,10 @@ epl_get_convo(packet_info *pinfo, int opts)
{
node_port = pinfo->srcport;
+#if 0
if (pinfo->src.type == AT_IPv4 || pinfo->src.type == AT_ETHER)
node_addr = &pinfo->src;
+#endif
if (pinfo->dl_src.type == AT_ETHER)
node_dl_addr = &pinfo->dl_src;
}