Message ID | alpine.LFD.2.21.1906131859070.5703@34-41-5D-CA-59-C7 (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [1/3] libsepol: more accurate error messages | expand |
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;
Remove redundant if-clause because the check already has been done earlier. Signed-off-by: Unto Sten <sten.unto@gmail.com> --- checkpolicy/parse_util.c | 3 --- 1 file changed, 3 deletions(-)