summaryrefslogtreecommitdiff
path: root/ldpd/adjacency.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-07-18 16:42:23 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-07-18 16:44:06 +0300
commit1f37d8c2d35cbe4ce347f7b5936d826890e97a8d (patch)
treefe3c4e379b42c4926df62eee8146ba57ae21d027 /ldpd/adjacency.c
parent13bcc010e3a2bd11cac412a7a9866de50d59e74b (diff)
bgpd, ldpd: No need for an explicit NULL check for thread_timer_remain_second
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'ldpd/adjacency.c')
-rw-r--r--ldpd/adjacency.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ldpd/adjacency.c b/ldpd/adjacency.c
index 7eb5663492..04a24242dc 100644
--- a/ldpd/adjacency.c
+++ b/ldpd/adjacency.c
@@ -386,9 +386,7 @@ adj_to_ctl(struct adj *adj)
}
actl.holdtime = adj->holdtime;
actl.holdtime_remaining =
- thread_is_scheduled(adj->inactivity_timer)
- ? thread_timer_remain_second(adj->inactivity_timer)
- : 0;
+ thread_timer_remain_second(adj->inactivity_timer);
actl.trans_addr = adj->trans_addr;
actl.ds_tlv = adj->ds_tlv;