Remove redundant if-clause because the check already has been done earlier. Signed-off-by: Unto Sten <sten.unto@xxxxxxxxx> --- checkpolicy/parse_util.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.21.0