bridge: Remove leftover from config file.
authorJesse Gross <jesse@nicira.com>
Fri, 12 Mar 2010 19:10:13 +0000 (14:10 -0500)
committerJesse Gross <jesse@nicira.com>
Mon, 15 Mar 2010 19:43:27 +0000 (15:43 -0400)
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

index 6440bb9afc0c755270c3c855c3642caa60e882ea..596040b45482c161c6bd3808018e2db9d8fb2d48 100644 (file)
@@ -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);
 }