aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2016-09-14 14:19:04 +0200
committerChris Luke <chris_luke@comcast.com>2016-09-14 18:14:56 +0000
commit5164086d855e99e79184d43cf46c9530c7e36743 (patch)
tree1afe95fe9d225526e47e871707cee2e1fc131458 /vnet
parentacfb47d6c10266555272661fcf5e660c99d09545 (diff)
VPP-407 fix coverity warning
Change-Id: Ic3e5df2d272c2b31fbe875e1c09db0edac4813b8 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/lldp/lldp_input.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/vnet/vnet/lldp/lldp_input.c b/vnet/vnet/lldp/lldp_input.c
index 5a565539..f86fe62c 100644
--- a/vnet/vnet/lldp/lldp_input.c
+++ b/vnet/vnet/lldp/lldp_input.c
@@ -56,7 +56,6 @@ lldp_main_t lldp_main;
static int
lldp_packet_scan (lldp_main_t * lm, lldp_intf_t * n, const lldp_tlv_t * pkt)
{
- lldp_error_t e = LLDP_ERROR_NONE;
const lldp_tlv_t *tlv = pkt;
/* first check if the header fits in before extracting data from it */
@@ -132,10 +131,6 @@ lldp_packet_scan (lldp_main_t * lm, lldp_intf_t * n, const lldp_tlv_t * pkt)
default:
return LLDP_ERROR_BAD_TLV;
}
- if (e)
- {
- return e;
- }
tlv = (lldp_tlv_t *) ((u8 *) tlv + STRUCT_SIZE_OF (lldp_tlv_t, head) +
lldp_tlv_get_length (tlv));
}