diff --git a/controller/ofctrl.c b/controller/ofctrl.c index a1676a7883..63b0aa975b 100644 --- a/controller/ofctrl.c +++ b/controller/ofctrl.c @@ -2202,7 +2202,7 @@ ofctrl_meter_bands_alloc(const struct sbrec_meter *sb_meter, struct ovn_extend_table_info *entry, struct ovs_list *msgs) { - struct meter_band_entry *mb = mb = xzalloc(sizeof *mb); + struct meter_band_entry *mb = xzalloc(sizeof *mb); mb->n_bands = sb_meter->n_bands; mb->bands = xcalloc(mb->n_bands, sizeof *mb->bands); for (int i = 0; i < sb_meter->n_bands; i++) { diff --git a/northd/northd.c b/northd/northd.c index 916068d44a..f8b046d83e 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -15765,7 +15765,7 @@ build_lrouter_nat_defrag_and_lb(struct ovn_datapath *od, struct hmap *lflows, !lport_addresses_is_empty(&od->lb_force_snat_addrs); for (int i = 0; i < od->nbr->n_nat; i++) { - const struct nbrec_nat *nat = nat = od->nbr->nat[i]; + const struct nbrec_nat *nat = od->nbr->nat[i]; struct eth_addr mac = eth_addr_broadcast; bool is_v6, distributed_nat; ovs_be32 mask;