]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: No need to set msg to NULL
authorDonald Sharp <sharpd@nvidia.com>
Tue, 30 May 2023 23:40:22 +0000 (19:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 1 Jun 2023 12:54:25 +0000 (08:54 -0400)
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 <sharpd@nvidia.com>
zebra/zserv.c

index 6abd49310c5acae58fa6febdfa8e75d0d7ffaae2..d2367007cf6c2df61492c8c7f084a556b9753a3f 100644 (file)
@@ -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.
                 */