X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=b7f068bf0cd181407bc7cf74b8cca5b52c774bab;hb=efdd908807544de7bee8644fafc1400e6a32d936;hp=d4a08b92fd36a1c8513ec2f6902a40d7c4840cd0;hpb=c6c9e1e36fdd9fe05e3d08a5e8fcceca13efd58a;p=sliver-openvswitch.git diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index d4a08b92f..b7f068bf0 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -645,9 +645,7 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg) shash_init(&cur_ifaces); for (i = 0; i < n_dpif_ports; i++) { const char *name = dpif_ports[i].devname; - if (!shash_find(&cur_ifaces, name)) { - shash_add(&cur_ifaces, name, NULL); - } + shash_add_once(&cur_ifaces, name, NULL); } free(dpif_ports);