From dc31de93e1a79b4a138b474d3c4fdb44cdfee6f3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 14 Nov 2022 08:06:16 -0500 Subject: [PATCH] zebra: Use the enum, luke Use the enum and let the compiler help us figure out what cases are being missed. Signed-off-by: Donald Sharp --- zebra/dplane_fpm_nl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c index d07c4c6332..7383c982ba 100644 --- a/zebra/dplane_fpm_nl.c +++ b/zebra/dplane_fpm_nl.c @@ -1275,7 +1275,7 @@ static void fpm_process_queue(struct thread *t) static void fpm_process_event(struct thread *t) { struct fpm_nl_ctx *fnc = THREAD_ARG(t); - int event = THREAD_VAL(t); + enum fpm_nl_events event = THREAD_VAL(t); switch (event) { case FNE_DISABLE: @@ -1328,11 +1328,6 @@ static void fpm_process_event(struct thread *t) if (IS_ZEBRA_DEBUG_FPM) zlog_debug("%s: LSP walk finished", __func__); break; - - default: - if (IS_ZEBRA_DEBUG_FPM) - zlog_debug("%s: unhandled event %d", __func__, event); - break; } } -- 2.39.5