diff mbox series

remove redundant if

Message ID alpine.LFD.2.21.1905242328001.9911@34-41-5D-CA-59-C7 (mailing list archive)
State Changes Requested
Headers show
Series remove redundant if | expand

Commit Message

Jokke Hämäläinen May 24, 2019, 8:30 p.m. UTC
Check already done earlier with: 

if (yyparse() || policydb_errors)
diff mbox series

Patch

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;