From 6b3486be116e68bcb386869198fc8d13cebfd8eb Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 11 Jun 2021 18:09:05 +0300 Subject: [PATCH] bgpd: Remove useless reuselist_node assignment before while loop Seems really not necessary pointing to initial value before while loop, where it's assigned anyway. Signed-off-by: Donatas Abraitis --- bgpd/bgp_damp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c index c9aa4fff25..40fe5b8b59 100644 --- a/bgpd/bgp_damp.c +++ b/bgpd/bgp_damp.c @@ -229,7 +229,6 @@ static void bgp_reuse_timer(struct event *t) * list head entry. */ assert(bdc->reuse_offset < bdc->reuse_list_size); plist = bdc->reuse_list[bdc->reuse_offset]; - node = SLIST_FIRST(&plist); SLIST_INIT(&bdc->reuse_list[bdc->reuse_offset]); /* 2. set offset = modulo reuse-list-size ( offset + 1 ), thereby -- 2.39.5