From: Donald Sharp Date: Tue, 30 May 2023 23:40:22 +0000 (-0400) Subject: zebra: No need to set msg to NULL X-Git-Tag: base_9.0~16^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c2cf5223477114b428077a07eb370e52b59da2e5;p=mirror%2Ffrr.git 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 --- 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. */