From e257d4c748605a6c8e72c1eca944beabd7936816 Mon Sep 17 00:00:00 2001 From: James Carter Date: Mon, 16 Nov 2020 17:06:58 -0500 Subject: [PATCH] libsepol/cil: Get rid of unnecessary check in cil_gen_node() Since cil_gen_node() is only called from declarations, the check to determine if the node is a declaration is not needed, so remove it. Signed-off-by: James Carter --- libsepol/cil/src/cil_build_ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsepol/cil/src/cil_build_ast.c b/libsepol/cil/src/cil_build_ast.c index bb5bbc84..67801def 100644 --- a/libsepol/cil/src/cil_build_ast.c +++ b/libsepol/cil/src/cil_build_ast.c @@ -154,7 +154,7 @@ int cil_gen_node(struct cil_db *db, struct cil_tree_node *ast_node, struct cil_s } } - if (ast_node->flavor >= CIL_MIN_DECLARATIVE && ast_node->parent->flavor == CIL_MACRO) { + if (ast_node->parent->flavor == CIL_MACRO) { struct cil_list_item *item; struct cil_list *param_list = ((struct cil_macro*)ast_node->parent->data)->params; if (param_list != NULL) {