From 88158a602477849f7fa9ea6e79b3cccdd72a58b5 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Tue, 27 Oct 2020 18:08:02 -0700 Subject: [PATCH] host: don't alloc notifier Both the fuzzer and the testbench call init_system_notifier which initializes the struct so there is no need for this check (which causes a double alloc) in the get function. Signed-off-by: Curtis Malainey --- src/arch/host/lib/notifier.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/arch/host/lib/notifier.c b/src/arch/host/lib/notifier.c index 8c609e8139c3..fffb6f78d5c3 100644 --- a/src/arch/host/lib/notifier.c +++ b/src/arch/host/lib/notifier.c @@ -18,8 +18,5 @@ static struct notify *host_notify; struct notify **arch_notify_get(void) { - if (!host_notify) - host_notify = rzalloc(SOF_MEM_ZONE_SYS, 0, SOF_MEM_CAPS_RAM, - sizeof(*host_notify)); return &host_notify; }