summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-05-30 19:40:22 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-06-01 08:54:25 -0400
commitc2cf5223477114b428077a07eb370e52b59da2e5 (patch)
tree9b0cb7bc14138b8224a8b20238ec13d49e4b17f0
parent1f7038386e34fac1731014535bfea6a0b3892abc (diff)
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 <sharpd@nvidia.com>
-rw-r--r--zebra/zserv.c2
1 files changed, 0 insertions, 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.
*/