Skip to content

Commit

Permalink
Merge pull request FRRouting#14717 from opensourcerouting/fix/coverit…
Browse files Browse the repository at this point in the history
…y_issues

A couple coverity issues
  • Loading branch information
donaldsharp authored Nov 2, 2023
2 parents c772c52 + 42045aa commit ad44b54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions bgpd/bgp_labelpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,7 @@ void bgp_lp_event_zebra_up(void)
}

/* round up */
if (((float)labels_needed / (float)lp->next_chunksize) >
(labels_needed / lp->next_chunksize))
chunks_needed = (labels_needed / lp->next_chunksize) + 1;
else
chunks_needed = (labels_needed / lp->next_chunksize);
chunks_needed = (labels_needed + lp->next_chunksize - 1) / lp->next_chunksize;
labels_needed = chunks_needed * lp->next_chunksize;

/*
Expand Down
4 changes: 0 additions & 4 deletions zebra/redistribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ static void zebra_redistribute(struct zserv *client, int type,
if (!zebra_check_addr(&rn->p))
continue;

if (type == ZEBRA_ROUTE_ADD && is_table_direct &&
newre->vrf_id != VRF_DEFAULT)
continue;

zsend_redistribute_route(ZEBRA_REDISTRIBUTE_ROUTE_ADD,
client, rn, newre, is_table_direct);
}
Expand Down

0 comments on commit ad44b54

Please sign in to comment.