[ovs-dev] [PATCH] bridge: Remove leftover from config file.

Jesse Gross jesse at nicira.com
Fri Mar 12 21:57:50 UTC 2010


The 'pfx' variable is no longer used now that the config file is
gone and its only purpose in life is to be freed so get rid of it.
---
 vswitchd/bridge.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 6440bb9..596040b 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -1530,7 +1530,6 @@ static void
 bridge_reconfigure_controller(const struct ovsrec_open_vswitch *ovs_cfg,
                               struct bridge *br)
 {
-    char *pfx = xasprintf("bridge.%s.controller", br->name);
     const struct ovsrec_controller *c;
 
     c = bridge_get_controller(ovs_cfg, br);
@@ -1624,7 +1623,6 @@ bridge_reconfigure_controller(const struct ovsrec_open_vswitch *ovs_cfg,
         ofproto_set_probe_interval(br->ofproto, 5);
         ofproto_set_failure(br->ofproto, false);
     }
-    free(pfx);
 
     ofproto_set_controller(br->ofproto, br->controller);
 }
-- 
1.6.3.3





More information about the dev mailing list