]> git.proxmox.com Git - ovs.git/commitdiff
ovs-lldp: Remove dead store to TTL configuration.
authorBen Pfaff <blp@ovn.org>
Tue, 30 May 2017 14:43:47 +0000 (07:43 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 30 May 2017 14:43:47 +0000 (07:43 -0700)
Apparently this has always used LLDP_CHASSIS_TTL as a fixed TTL, so we
might as well delete the statement just before that tries to dynamically
calculate it.

Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14762612&defectInstanceId=4304824&mergedDefectId=180431
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Dennis Flynn <drflynn@avaya.com>
lib/ovs-lldp.c

index 55fc2320312cec7aa04d2c9538bf64f502c63f28..711f9b4fe635c73a70adaad6073a86c0b1451d1d 100644 (file)
@@ -797,8 +797,6 @@ lldp_create(const struct netdev *netdev,
     lchassis->c_id = &mac->ea[0];
 
     ovs_list_init(&lchassis->c_mgmt);
-    lchassis->c_ttl = lldp->lldpd->g_config.c_tx_interval *
-                      lldp->lldpd->g_config.c_tx_hold;
     lchassis->c_ttl = LLDP_CHASSIS_TTL;
     lldpd_assign_cfg_to_protocols(lldp->lldpd);
     ovs_list_init(&lldp->lldpd->g_chassis);