From c2cf5223477114b428077a07eb370e52b59da2e5 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 30 May 2023 19:40:22 -0400 Subject: [PATCH] zebra: No need to set msg to NULL The msg value is always reset to something new before it is used inside the mutex. No need to set it to NULL. Signed-off-by: Donald Sharp --- zebra/zserv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/zebra/zserv.c b/zebra/zserv.c index 6abd49310c..d2367007cf 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -507,8 +507,6 @@ static void zserv_process_messages(struct event *thread) stream_fifo_push(cache, msg); } - msg = NULL; - /* Need to reschedule processing work if there are still * packets in the fifo. */ -- 2.39.5