diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-06 03:03:10 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-18 15:11:28 +0200 |
commit | c8a5b965145e7b9b2e559274944639cc3f2b6674 (patch) | |
tree | 0b7de001e42d5ca0d2e2b3c4d093298090203b89 /bgpd/bgp_mac.c | |
parent | bgpd: Fix crash when rd has no data (diff) | |
download | frr-c8a5b965145e7b9b2e559274944639cc3f2b6674.tar.xz frr-c8a5b965145e7b9b2e559274944639cc3f2b6674.zip |
bgpd: Remove unused count variable in mac_rescan_table function
The variable count was being incremented but never used.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_mac.c')
-rw-r--r-- | bgpd/bgp_mac.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_mac.c b/bgpd/bgp_mac.c index 257ae4e4f..3bc668348 100644 --- a/bgpd/bgp_mac.c +++ b/bgpd/bgp_mac.c @@ -138,7 +138,6 @@ static void bgp_process_mac_rescan_table(struct bgp *bgp, struct peer *peer, { struct bgp_node *prn, *rn; struct bgp_path_info *pi; - uint32_t count = 0; for (prn = bgp_table_top(table); prn; prn = bgp_route_next(prn)) { struct bgp_table *sub = prn->info; @@ -162,7 +161,6 @@ static void bgp_process_mac_rescan_table(struct bgp *bgp, struct peer *peer, else rn_affected = false; - count++; for (pi = rn->info; pi; pi = pi->next) { if (pi->peer == peer) break; |