summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_sr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-15 21:55:24 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-15 23:53:09 +0200
commitc4dddf32d3ecdbef1d27cd11e6d6d3956e8c145d (patch)
tree0328004b00b7dadcda1b1a1a01baca97e74c7dd1 /ospfd/ospf_sr.c
parentbgpd: Trust backet->data in bgp_evpn.c (diff)
downloadfrr-c4dddf32d3ecdbef1d27cd11e6d6d3956e8c145d.tar.xz
frr-c4dddf32d3ecdbef1d27cd11e6d6d3956e8c145d.zip
ospfd: trust backet->data
The backet->data cannot be NULL, no need to check for it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_sr.c')
-rw-r--r--ospfd/ospf_sr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c
index 25983ddc5..3df75c304 100644
--- a/ospfd/ospf_sr.c
+++ b/ospfd/ospf_sr.c
@@ -1524,10 +1524,6 @@ static void ospf_sr_nhlfe_update(struct hash_backet *backet, void *args)
struct sr_nhlfe old;
int rc;
- /* Sanity Check */
- if (srn == NULL)
- return;
-
if (IS_DEBUG_OSPF_SR)
zlog_debug(" |- Update Prefix for SR Node %s",
inet_ntoa(srn->adv_router));