Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VPP-407 fix coverity warning
[vpp.git]
/
vnet
/
vnet
/
lldp
/
lldp_input.c
diff --git
a/vnet/vnet/lldp/lldp_input.c
b/vnet/vnet/lldp/lldp_input.c
index
5a56553
..
f86fe62
100644
(file)
--- 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)
{
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 */
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;
}
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));
}
tlv = (lldp_tlv_t *) ((u8 *) tlv + STRUCT_SIZE_OF (lldp_tlv_t, head) +
lldp_tlv_get_length (tlv));
}