Signed-off-by: Ben Pfaff <[email protected]>
---
lib/ovs-lldp.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/ovs-lldp.c b/lib/ovs-lldp.c
index aa52cd9..5deee58 100644
--- a/lib/ovs-lldp.c
+++ b/lib/ovs-lldp.c
@@ -482,16 +482,12 @@ aa_configure(const struct aa_settings *s)
LIST_FOR_EACH (chassis, list, &lldp->lldpd->g_chassis.list) {
/* System Description */
- if (chassis->c_descr) {
- free(chassis->c_descr);
- }
+ free(chassis->c_descr);
chassis->c_descr = s->system_description[0] ?
xstrdup(s->system_description) : xstrdup(PACKAGE_STRING);
/* System Name */
- if (chassis->c_name) {
- free(chassis->c_name);
- }
+ free(chassis->c_name);
chassis->c_name = xstrdup(s->system_name);
}
}
--
2.1.3
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev