* [PATCH] remove redundant if
@ 2019-05-24 20:30 Jokke Hämäläinen
0 siblings, 0 replies; only message in thread
From: Jokke Hämäläinen @ 2019-05-24 20:30 UTC (permalink / raw)
To: selinux
Check already done earlier with:
if (yyparse() || policydb_errors)
diff --git a/checkpolicy/parse_util.c b/checkpolicy/parse_util.c
index 9fda5b42..f2809b48 100644
--- a/checkpolicy/parse_util.c
+++ b/checkpolicy/parse_util.c
@@ -69,9 +69,6 @@ int read_source_policy(policydb_t * p, const char *file, const char *progname)
}
queue_destroy(id_queue);
- if (policydb_errors)
- return -1;
-
fclose(yyin);
return 0;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-24 20:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24 20:30 [PATCH] remove redundant if Jokke Hämäläinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).