Skip to content

Commit

Permalink
fix a copy-paste typo
Browse files Browse the repository at this point in the history
Although this typo does not cause a real error.

Look at my test: https://gcc.godbolt.org/z/hdKc389vd

Signed-off-by: Igor Zhukov <fsb4000@yandex.ru>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
fsb4000 authored and ovsrobot committed Oct 19, 2023
1 parent d19b438 commit 7590f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controller/ofctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
2 changes: 1 addition & 1 deletion northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7590f76

Please sign in to comment.