From 69ec58328965fd7fee372972496edb32e99b42cb Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Sat, 9 May 2020 00:50:45 -0300 Subject: [PATCH] lib: fix undue warning during gRPC module initialization This warning only shows up when a daemon is started with --log=stdout. Fix it. Signed-off-by: Renato Westphal --- lib/northbound_grpc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/northbound_grpc.cpp b/lib/northbound_grpc.cpp index 96a11d67bd..a664fbac4a 100644 --- a/lib/northbound_grpc.cpp +++ b/lib/northbound_grpc.cpp @@ -1406,6 +1406,8 @@ static int frr_grpc_module_very_late_init(struct thread *thread) if (frr_grpc_init(&port) < 0) goto error; + return 0; + error: flog_err(EC_LIB_GRPC_INIT, "failed to initialize the gRPC module"); return -1; -- 2.39.5