From 9b4a914c8fec167e6ca1f453eaef4f799fed3da1 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 22 Apr 2013 21:25:23 +0000 Subject: Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang svn path=/trunk/; revision=48984 --- epan/dissectors/packet-cdp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'epan/dissectors/packet-cdp.c') 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)) { -- cgit v1.2.3