From c9ae81656f97bcc55910e80b6f00d3ee9383d848 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 24 Nov 2020 03:21:44 +0100 Subject: Some minor sl_allocz() cleanups --- proto/ospf/topology.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'proto/ospf') diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index ea7176fd..52c2a0ce 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -2108,9 +2108,7 @@ ospf_hash_get(struct top_graph *f, u32 domain, u32 lsa, u32 rtr, u32 type) if (e) return e; - e = sl_alloc(f->hash_slab); - bzero(e, sizeof(struct top_hash_entry)); - + e = sl_allocz(f->hash_slab); e->color = OUTSPF; e->dist = LSINFINITY; e->lsa.type_raw = type; -- cgit v1.2.3