summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_sr.c
diff options
context:
space:
mode:
authorFredi Raspall <fredi@voltanet.io>2021-05-28 13:56:49 +0200
committerEmanuele Di Pascale <emanuele@voltanet.io>2021-09-28 10:20:59 +0200
commit143661c17f083a479c793132adb793fcce3f0105 (patch)
treec8466aa6aacdc61eeedd34224aad0456369bed84 /ospfd/ospf_sr.c
parentospfd: remove unused macro (diff)
downloadfrr-143661c17f083a479c793132adb793fcce3f0105.tar.xz
frr-143661c17f083a479c793132adb793fcce3f0105.zip
ospfd: remove unnecessary assignment
Signed-off-by: Fredi Raspall <fredi@voltanet.io>
Diffstat (limited to 'ospfd/ospf_sr.c')
-rw-r--r--ospfd/ospf_sr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c
index 38fe02229..27ffdd4cf 100644
--- a/ospfd/ospf_sr.c
+++ b/ospfd/ospf_sr.c
@@ -278,10 +278,8 @@ static int sr_local_block_init(uint32_t lower_bound, uint32_t upper_bound)
* an error to disable SR until a new SRLB is successfully allocated.
*/
size = upper_bound - lower_bound + 1;
- if (ospf_zebra_request_label_range(lower_bound, size)) {
- srlb->reserved = false;
+ if (ospf_zebra_request_label_range(lower_bound, size))
return -1;
- }
osr_debug("SR (%s): Got new SRLB [%u/%u]", __func__, lower_bound,
upper_bound);