From aa04d61979c4ffdd0d663e20e3c7fb1421c74139 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Fri, 8 Dec 2023 23:49:10 -0500 Subject: [PATCH] lib: fix checkpatch warnings Signed-off-by: Christian Hopps --- lib/yang.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/yang.c b/lib/yang.c index a707469a7881..0998133a5a25 100644 --- a/lib/yang.c +++ b/lib/yang.c @@ -745,6 +745,7 @@ struct ly_ctx *yang_ctx_new_setup(bool embedded_modules, bool explicit_compile) { struct ly_ctx *ctx = NULL; const char *yang_models_path = YANG_MODELS_PATH; + uint options; LY_ERR err; if (access(yang_models_path, R_OK | X_OK)) { @@ -758,7 +759,7 @@ struct ly_ctx *yang_ctx_new_setup(bool embedded_modules, bool explicit_compile) YANG_MODELS_PATH); } - uint options = LY_CTX_NO_YANGLIBRARY | LY_CTX_DISABLE_SEARCHDIR_CWD; + options = LY_CTX_NO_YANGLIBRARY | LY_CTX_DISABLE_SEARCHDIR_CWD; if (explicit_compile) options |= LY_CTX_EXPLICIT_COMPILE; err = ly_ctx_new(yang_models_path, options, &ctx);