summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5a5655398f2..f86fe62cecc 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));
}