aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cdp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-04-22 21:25:23 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-04-22 21:25:23 +0000
commit9b4a914c8fec167e6ca1f453eaef4f799fed3da1 (patch)
treef9bedada853f57da3e0cc5a50b34e94ce42d0038 /epan/dissectors/packet-cdp.c
parentea63ba2c8ff40c91cc36e3dbdb7d1ea21f09744c (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48984
Diffstat (limited to 'epan/dissectors/packet-cdp.c')
-rw-r--r--epan/dissectors/packet-cdp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cdp.c b/epan/dissectors/packet-cdp.c
index 038e5dc2d7..6786801067 100644
--- a/epan/dissectors/packet-cdp.c
+++ b/epan/dissectors/packet-cdp.c
@@ -1021,7 +1021,6 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
/* XXX - the Cisco document seems to be saying that, for 802.2-format
protocol types, 0xAAAA03 0x000000 0x0800 is IPv6, but 0x0800 is
the Ethernet protocol type for IPv4. */
- length = 2 + protocol_length + 2 + address_length;
address_type_str = NULL;
address_str = NULL;
if ((protocol_type == PROTO_TYPE_NLPID) && (protocol_length == 1)) {